Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\rcu\rcutorture.c Create Date:2022-07-28 10:22:09
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Callback function for continuous-flood RCU callbacks.

Proto:static void rcu_torture_fwd_cb_cr(struct callback_head *rhp)

Type:void

Parameter:

TypeParameterName
struct callback_head *rhp
1712  rfcp = container_of - cast a member of a structure out to the containing structure*@ptr: the pointer to the member.*@type: the type of the container struct this is embedded in.*@member: the name of the member within the struct.(rhp, structrcu_fwd_cb, rh)
1715  rfc_next = NULL
1716  rfc_gps++
1717  spin_lock_irqsave( & rcu_fwd_lock, flags)
1718  rfcpp = rcu_fwd_cb_tail
1719  rcu_fwd_cb_tail = rfc_next
1720  WRITE_ONCE( * rfcpp, rfcp)
1721  WRITE_ONCE(n_launders_cb, n_launders_cb + 1)
1722  i = (jiffies - rcu_fwd_startat) / HZ / Histogram buckets/second.
1723  If i >= ARRAY_SIZE - get the number of elements in array @arr*@arr: array to be sized(n_launders_hist) Then i = ARRAY_SIZE - get the number of elements in array @arr*@arr: array to be sized(n_launders_hist) - 1
1725  n_launders++
1726  launder_gp_seq = get_gp_seq()
1727  spin_unlock_irqrestore( & rcu_fwd_lock, flags)