函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称: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.

函数原型:static bool readers_active_check(struct percpu_rw_semaphore *sem)

返回类型:bool

参数:

类型参数名称
struct percpu_rw_semaphore *sem
130  如果per_cpu_sum( * read_count)不等于0则返回:false
138  smp_mb()
140  返回:true
调用者
名称描述
percpu_down_write