Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\scatterlist.c Create Date:2022-07-28 06:20:41
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:The default behaviour of sg_alloc_table() is to use these kmalloc/kfree* helpers.

Proto:static struct scatterlist *sg_kmalloc(unsigned int nents, gfp_t gfp_mask)

Type:struct scatterlist

Parameter:

TypeParameterName
unsigned intnents
gfp_tgfp_mask
151  If 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. Then
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  Return ptr
164  Else Return kmalloc_array - allocate memory for an array.*@n: number of elements.*@size: element size.*@flags: the type of memory to allocate (see kmalloc).