函数逻辑报告 |
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 |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:__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) |
23 | rcuwait_init( & blocked writer ) |
24 | readers_block等于0 |
25 | 返回:0 |
名称 | 描述 |
---|---|
alloc_super | alloc_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() |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |