Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\asm-generic\atomic-instrumented.h Create Date:2022-07-28 05:34:50
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:atomic_inc_and_test

Proto:static inline bool atomic_inc_and_test(atomic_t *v)

Type:bool

Parameter:

TypeParameterName
atomic_t *v
757  kasan_check_write(v, size of v )
758  Return 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.
Caller
NameDescribe
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