Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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 activityDownload SCCTChinese

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:

TypeParameterName
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)
22  Initialize an rwsem:
23  rcuwait_init( & blocked writer )
24  readers_block = 0
25  Return 0