函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:try_get_page

函数原型:static inline __must_check bool try_get_page(struct page *page)

返回类型:bool

参数:

类型参数名称
struct page *page
1014  page等于compound_head(page)
1015  如果WARN_ON_ONCE(page_ref_count(page) <= 0)则返回:false
1017  page_ref_inc(page)
1018  返回:true
调用者
名称描述
follow_page_pte
follow_pmd_mask
get_gate_page
generic_pipe_buf_getgeneric_pipe_buf_get - get a reference to a &struct pipe_buffer*@pipe: the pipe that the buffer belongs to*@buf: the buffer to get a reference to* Description:* This function grabs an extra reference to @buf