函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\sg_pool.c Create Date:2022-07-27 08:19:16
Last Modify:2022-05-21 18:25:42 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:sg_pool_index

函数原型:static inline unsigned int sg_pool_index(unsigned short nents)

返回类型:unsigned int

参数:

类型参数名称
unsigned shortnents
44  BUG_ON(nents > The maximum number of SG segments that we will put inside a* scatterlist (unless chaining is used). Should ideally fit inside a* single page, to avoid a higher order allocation. We could define this)
46  如果nents小于等于8则index等于0
48  否则index等于get_count_order(nents)减3
51  返回:index
调用者
名称描述
sg_pool_free
sg_pool_alloc