函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:sg_pool_init

函数原型:static __init int sg_pool_init(void)

返回类型:int

参数:

145 i小于SG_MEMPOOL_NR循环
146  sgp等于sg_poolsi
147  size等于sizesizeof(structscatterlist)
149  slab等于创建高速缓存区
151  如果非slab
152  printk(r conditions "SG_POOL: can't init sg slab %s\n", name)
154  转到:cleanup_sdb
157  pool等于mempool_create_slab_pool(SG_MEMPOOL_SIZE, slab)
159  如果非pool
160  printk(r conditions "SG_POOL: can't init sg mempool %s\n", name)
162  转到:cleanup_sdb
166  返回:0
168  cleanup_sdb :
169 i小于SG_MEMPOOL_NR循环
170  sgp等于sg_poolsi
172  mempool_destroy(pool)
173  删除高速缓存区
176  返回:负ENOMEM