Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Converts an allocation size in bytes to size in z3fold chunks

Proto:static int size_to_chunks(size_t size)

Type:int

Parameter:

TypeParameterName
size_tsize
204  Return size + CHUNK_SIZE - 1 >> CHUNK_SHIFT
Caller
NameDescribe
compact_single_buddy
__z3fold_allocrns _locked_ z3fold page header or NULL
z3fold_allocz3fold_alloc() - allocates a region of a given size*@pool: z3fold pool from which to allocate*@size: size in bytes of the desired allocation*@gfp: gfp flags used if the pool needs to grow*@handle: handle of the new allocation* This function will attempt