函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:atomic_inc_unless_negative

函数原型:static inline bool atomic_inc_unless_negative(atomic_t *v)

返回类型:bool

参数:

类型参数名称
atomic_t *v
1136  c等于atomic_read(v)
1138  循环
1139  如果此条件成立可能性小(为编译器优化)(c < 0)则返回:false
1141  当非atomic_try_cmpxchg(v, & c, c + 1)循环
1143  返回:true
调用者
名称描述
exclusive_event_initThe following implement mutual exclusion of events on "exclusive" pmus* (PERF_PMU_CAP_EXCLUSIVE)
atomic_long_inc_unless_negative
mapping_map_writable
get_write_accessget_write_access() gets write permission for a file.* put_write_access() releases this write permission.* This is used for regular files.* We cannot support write (and maybe mmap read-write shared) accesses and* MAP_DENYWRITE mmappings simultaneously