函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:This function is called by the a write lock owner. So the owner value* won't get changed by others.

函数原型:static inline void rwsem_disable_reader_optspin(struct rw_semaphore *sem, bool disable)

返回类型:void

参数:

类型参数名称
struct rw_semaphore *sem
booldisable
1129  如果此条件成立可能性小(为编译器优化)(disable)则
1130  atomic_long_or(RWSEM_RD_NONSPINNABLE, & Write owner or one of the read owners as well flags regarding* the current state of the rwsem. Can be used as a speculative* check to see if the write owner is running on the cpu.)
调用者
名称描述
rwsem_down_write_slowpathWait until we successfully acquire the write lock