函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:percpu_down_read_trylock

函数原型:static inline int percpu_down_read_trylock(struct percpu_rw_semaphore *sem)

返回类型:int

参数:

类型参数名称
struct percpu_rw_semaphore *sem
63  ret等于1
65  禁止抢占()
69  __this_cpu_inc( * read_count)
70  如果此条件成立可能性小(为编译器优化)(!_sync_is_idle() - Are readers permitted to use their fastpaths?*@rsp: Pointer to rcu_sync structure to use for synchronization* Returns true if readers are permitted to use their fastpaths. Must be)则ret等于__percpu_down_read(sem, true)
72  禁用抢占和中断()
78  如果retrwsem_acquire_read( & dep_map, 0, 1, _RET_IP_)
81  返回:ret
调用者
名称描述
__sb_start_writeThis is an internal function, please use sb_start_{write,pagefault,intwrite}* instead.