Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\mm.h Create Date:2022-07-28 05:43:29
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:try_get_page

Proto:static inline __must_check bool try_get_page(struct page *page)

Type:bool

Parameter:

TypeParameterName
struct page *page
1014  page = compound_head(page)
1015  If WARN_ON_ONCE(page_ref_count(page) <= 0) Then Return false
1017  page_ref_inc(page)
1018  Return true
Caller
NameDescribe
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