Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Allocate an element from the rcu_tortures pool.

Proto:static struct rcu_torture *rcu_torture_alloc(void)

Type:struct rcu_torture

Parameter:Nothing

261  spin_lock_bh( & rcu_torture_lock)
262  If list_empty - tests whether a list is empty*@head: the list to test. Then
263  atomic_inc( & n_rcu_torture_alloc_fail)
264  spin_unlock_bh( & rcu_torture_lock)
265  Return NULL
267  atomic_inc( & n_rcu_torture_alloc)
268  p = next
269  list_del_init - deletes entry from list and reinitialize it.*@entry: the element to delete from the list.
270  spin_unlock_bh( & rcu_torture_lock)
271  Return 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.(p, structrcu_torture, rtort_free)
Caller
NameDescribe
rcu_torture_writerRCU torture writer kthread. Repeatedly substitutes a new structure* for that pointed to by rcu_torture_current, freeing the old structure* after a series of grace periods (the "pipeline").