函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:The default behaviour of sg_alloc_table() is to use these kmalloc/kfree* helpers.

函数原型:static struct scatterlist *sg_kmalloc(unsigned int nents, gfp_t gfp_mask)

返回类型:struct scatterlist

参数:

类型参数名称
unsigned intnents
gfp_tgfp_mask
151  如果nents恒等于Maximum number of entries that will be allocated in one piece, if* a list larger than this is required then chaining will be utilized.
161  ptr等于__get_free_page(gfp_mask)
162  kmemleak_alloc - register a newly allocated object*@ptr: pointer to beginning of the object*@size: size of the object*@min_count: minimum number of references to this object. If during memory* scanning a number of references less than @min_count is found,
163  返回:ptr
164  否则返回:分配数组内存