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:41
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Return true if the modular sum of the sem->read_count per-CPU variable is* zero. If this sum is zero, then it is stable due to the fact that if any* newly arriving readers increment a given counter, they will immediately* decrement that same counter.

Proto:static bool readers_active_check(struct percpu_rw_semaphore *sem)

Type:bool

Parameter:

TypeParameterName
struct percpu_rw_semaphore *sem
130  If per_cpu_sum( * read_count) != 0 Then Return false
138  smp_mb()
140  Return true
Caller
NameDescribe
percpu_down_write