函数逻辑报告

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

函数名称:sg_kfree

函数原型:static void sg_kfree(struct scatterlist *sg, unsigned int nents)

返回类型:void

参数:

类型参数名称
struct scatterlist *sg
unsigned intnents
171  如果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.
172  kmemleak_free - unregister a previously registered object*@ptr: pointer to beginning of the object* This function is called from the kernel allocators when an object (memory* block) is freed (kmem_cache_free, kfree, vfree etc.).
173  free_page((unsignedlong)sg)
174  否则kfree(sg)