函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\srcutiny.h Create Date:2022-07-27 06:39:56
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:Counts the new reader in the appropriate per-CPU element of the* srcu_struct. Can be invoked from irq/bh handlers, but the matching* __srcu_read_unlock() must be in the same handler instance. Returns an

函数原型:static inline int __srcu_read_lock(struct srcu_struct *ssp)

返回类型:int

参数:

类型参数名称
struct srcu_struct *ssp
62  idx等于READ_ONCE( Current reader array element. )
63  WRITE_ONCE( srcu_read_lock() nesting depth. [idx], srcu_read_lock() nesting depth. [idx] + 1)
64  返回:idx
调用者
名称描述
srcu_read_locksrcu_read_lock - register a new reader for an SRCU-protected structure
srcu_read_lock_notraceUsed by tracing, cannot be traced and cannot invoke lockdep.