Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\z3fold.c Create Date:2022-07-28 16:28:56
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:__get_z3fold_header

Proto:static inline struct z3fold_header *__get_z3fold_header(unsigned long handle, bool lock)

Type:struct z3fold_header

Parameter:

TypeParameterName
unsigned longhandle
boollock
261  locked = 0
263  If Not (handle & 1 << PAGE_HEADLESS ) Then
264  slots = handle_to_slots(handle)
265  Do
268  read_lock( & lock)
269  addr = handle
270  zhdr = addr & PAGE_MASK
273  read_unlock( & lock)
274  If locked Then Break
276  cpu_relax()
277  When lock cycle
278  Else
279  zhdr = handle & PAGE_MASK
282  Return zhdr
Caller
NameDescribe
handle_to_z3fold_headerReturns the z3fold page where a given handle is stored
get_z3fold_headerrn locked z3fold page if it's not headless