函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:__init_srcu_struct

函数原型:int __init_srcu_struct(struct srcu_struct *ssp, const char *name, struct lock_class_key *key)

返回类型:int

参数:

类型参数名称
struct srcu_struct *ssp
const char *name
struct lock_class_key *key
193  Called when kernel memory is freed (or unmapped), or if a lock* is destroyed or reinitialized - this code checks whether there is* any held lock in the memory range of to :
194  Initialize a lock instance's lock-class mapping info:
195  spin_lock_init( & ACCESS_PRIVATE(ssp, lock))
196  返回:Initialize non-compile-time initialized fields, including the* associated srcu_node and srcu_data structures. The is_static* parameter is passed through to init_srcu_struct_nodes(), and* also tells us that ->sda has already been wired up to srcu_data.