Function report |
Source Code:kernel\locking\percpu-rwsem.c |
Create Date:2022-07-28 09:48:39 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:__percpu_init_rwsem
Proto:int __percpu_init_rwsem(struct percpu_rw_semaphore *sem, const char *name, struct lock_class_key *rwsem_key)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct percpu_rw_semaphore * | sem | |
const char * | name | |
struct lock_class_key * | rwsem_key |
16 | read_count = alloc_percpu(int) |
17 | If Value for the false possibility is greater at compile time(!read_count) Then Return -ENOMEM |
21 | rcu_sync_init( & rss) |
23 | rcuwait_init( & blocked writer ) |
24 | readers_block = 0 |
25 | Return 0 |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |