函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

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

返回类型:int

参数:

类型参数名称
size_tsize
232  返回:sizeCHUNK_SIZE减1右移CHUNK_SHIFT
调用者
名称描述
zbud_alloczbud_alloc() - allocates a region of a given size*@pool: zbud 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 to