Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:page_ref_add_unless

Proto:static inline int page_ref_add_unless(struct page *page, int nr, int u)

Type:int

Parameter:

TypeParameterName
struct page *page
intnr
intu
157  ret = atomic_add_unless - add unless the number is already a given value*@v: pointer of type atomic_t*@a: the amount to add to v...*@u: ...unless v is equal to u.* Atomically adds @a to @v, if @v was not already @u.* Returns true if the addition was done.
159  If page_ref_tracepoint_active(__tracepoint_page_ref_mod_unless) Then __page_ref_mod_unless(page, nr, ret)
161  Return ret