函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Converts an allocation size in bytes to size in z3fold chunks

函数原型:static int size_to_chunks(size_t size)

返回类型:int

参数:

类型参数名称
size_tsize
204  返回:sizeCHUNK_SIZE减1右移CHUNK_SHIFT
调用者
名称描述
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