函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:page_ref_dec_and_test

函数原型:static inline int page_ref_dec_and_test(struct page *page)

返回类型:int

参数:

类型参数名称
struct page *page
139  ret等于atomic_dec_and_test( & Usage count. *DO NOT USE DIRECTLY*. See page_ref.h )
141  如果page_ref_tracepoint_active(__tracepoint_page_ref_mod_and_test)则__page_ref_mod_and_test(page, - 1, ret)
143  返回:ret
调用者
名称描述
put_page_testzeroDrop a ref, return true if the refcount fell to zero (the page has no users)