函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:atomic_inc_and_test

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

返回类型:bool

参数:

类型参数名称
atomic_t *v
757  kasan_check_write(v, v的长度)
758  返回:arch_atomic_inc_and_test - increment and test*@v: pointer of type atomic_t* Atomically increments @v by 1* and returns true if the result is zero, or false for all* other cases.
调用者
名称描述
do_page_add_anon_rmapSpecial version of the above for do_swap_page, which often runs* into pages that are exclusively owned by the current process.* Everybody else should continue to use page_add_anon_rmap above.
page_add_file_rmappage_add_file_rmap - add pte mapping to a file page*@page: the page to add the mapping to*@compound: charge the page as compound or small page* The caller needs to hold the pte lock.
hugepage_add_anon_rmapThe following two functions are for anonymous (private mapped) hugepages.* Unlike common anonymous pages, anonymous hugepages have no accounting code* and no lru code, because we handle hugepages differently from common pages.
atomic_long_inc_and_test