函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\rcu\rcutorture.c Create Date:2022-07-27 11:21:21
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:Allocate an element from the rcu_tortures pool.

函数原型:static struct rcu_torture *rcu_torture_alloc(void)

返回类型:struct rcu_torture

参数:

261  spin_lock_bh( & rcu_torture_lock)
262  如果链表为空
263  atomic_inc( & n_rcu_torture_alloc_fail)
264  spin_unlock_bh( & rcu_torture_lock)
265  返回:NULL
267  atomic_inc( & n_rcu_torture_alloc)
268  p等于链表后项
269  删除链表项并重新初始化
270  spin_unlock_bh( & rcu_torture_lock)
271  返回: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)
调用者
名称描述
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").