函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:__get_z3fold_header

函数原型:static inline struct z3fold_header *__get_z3fold_header(unsigned long handle, bool lock)

返回类型:struct z3fold_header

参数:

类型参数名称
unsigned longhandle
boollock
261  locked等于0
263  如果非handle按位与1左移PAGE_HEADLESS位的值则
264  slots等于handle_to_slots(handle)
265  循环
268  read_lock( & lock)
269  addr等于handle
270  zhdr等于addr按位与PAGE_MASK
273  read_unlock( & lock)
274  如果locked退出
276  cpu_relax()
277 lock循环
278  否则
279  zhdr等于handle按位与PAGE_MASK
282  返回:zhdr
调用者
名称描述
handle_to_z3fold_headerReturns the z3fold page where a given handle is stored
get_z3fold_headerrn locked z3fold page if it's not headless