Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\sg_pool.c Create Date:2022-07-28 07:20:32
Last Modify:2022-05-21 18:25:42 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:sg_pool_index

Proto:static inline unsigned int sg_pool_index(unsigned short nents)

Type:unsigned int

Parameter:

TypeParameterName
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  If nents <= 8 Then index = 0
48  Else index = get_count_order(nents) - 3
51  Return index
Caller
NameDescribe
sg_pool_free
sg_pool_alloc