函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:__percpu_init_rwsem

函数原型:int __percpu_init_rwsem(struct percpu_rw_semaphore *sem, const char *name, struct lock_class_key *rwsem_key)

返回类型:int

参数:

类型参数名称
struct percpu_rw_semaphore *sem
const char *name
struct lock_class_key *rwsem_key
16  read_count等于alloc_percpu(int)
17  如果此条件成立可能性小(为编译器优化)(!read_count)则返回:负ENOMEM
21  rcu_sync_init( & rss)
22  Initialize an rwsem:
23  rcuwait_init( & blocked writer )
24  readers_block等于0
25  返回:0
调用者
名称描述
alloc_superalloc_super - create new superblock*@type: filesystem type superblock should belong to*@flags: the mount flags*@user_ns: User namespace for the super_block* Allocates and initializes a new &struct super_block. alloc_super()