Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:alloc_slots

Proto:static inline struct z3fold_buddy_slots *alloc_slots(struct z3fold_pool *pool, gfp_t gfp)

Type:struct z3fold_buddy_slots

Parameter:

TypeParameterName
struct z3fold_pool *pool
gfp_tgfp
215  slots = kmem_cache_alloc(c_handle, (gfp & ~(__GFP_HIGHMEM | ZONE_MOVABLE allowed )))
218  If slots Then
219  memset(* we are using BUDDY_MASK in handle_to_buddy etc. so there should * be enough slots to hold all possible variants, 0, size of * 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  Return slots
Caller
NameDescribe
init_z3fold_pageInitializes the z3fold header of a newly allocated z3fold page