函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:__percpu_down_read

函数原型:int __percpu_down_read(struct percpu_rw_semaphore *sem, int try)

返回类型:int

参数:

类型参数名称
struct percpu_rw_semaphore *sem
inttry
61  smp_mb()
67  如果此条件成立可能性大(为编译器优化)(!smp_load_acquire( & readers_block))则返回:1
74  __percpu_up_read(sem)
76  如果try则返回:0
83  preempt_enable_no_resched()
88  lock for reading
89  this_cpu_inc( * read_count)
90  lock after reading
92  禁止抢占()
93  返回:1