函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:alloc_slots

函数原型:static inline struct z3fold_buddy_slots *alloc_slots(struct z3fold_pool *pool, gfp_t gfp)

返回类型:struct z3fold_buddy_slots

参数:

类型参数名称
struct z3fold_pool *pool
gfp_tgfp
215  slots等于分配高速缓存区
218  如果slots
219  memset(* we are using BUDDY_MASK in handle_to_buddy etc. so there should * be enough slots to hold all possible variants, 0, * we are using BUDDY_MASK in handle_to_buddy etc. so there should * be enough slots to hold all possible variants的长度)
220  back link + flags 等于pool
221  rwlock_init( & lock)
224  返回:slots
调用者
名称描述
init_z3fold_pageInitializes the z3fold header of a newly allocated z3fold page