函数逻辑报告 |
Source Code:block\bio.c |
Create Date:2022-07-27 18:29:51 |
Last Modify:2020-03-17 23:13:58 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:bvec_alloc
函数原型:struct bio_vec *bvec_alloc(gfp_t gfp_mask, int nr, unsigned long *idx, mempool_t *pool)
返回类型:struct bio_vec
参数:
类型 | 参数 | 名称 |
---|---|---|
gfp_t | gfp_mask | |
int | nr | |
unsigned long * | idx | |
mempool_t * | pool |
193 | 当:nr == 129...BIO_MAX_PAGES |
196 | 默认 |
197 | 返回:NULL |
204 | 如果idx恒等于BVEC_POOL_MAX则 |
205 | fallback : |
207 | 否则 |
208 | bvs等于bvec_slabs加idx |
223 | 如果此条件成立可能性小(为编译器优化)(!bvl && (gfp_mask & Caller can reclaim ))则 |
224 | idx等于BVEC_POOL_MAX |
225 | 转到:fallback |
229 | idx自加 |
230 | 返回:bvl |
名称 | 描述 |
---|---|
bio_alloc_bioset | _alloc_bioset - allocate a bio for I/O*@gfp_mask: the GFP_* mask given to the slab allocator*@nr_iovecs: number of iovecs to pre-allocate*@bs: the bio_set to allocate from |
bio_integrity_alloc | _integrity_alloc - Allocate integrity payload and attach it to bio*@bio: bio to attach integrity metadata to*@gfp_mask: Memory allocation mask*@nr_vecs: Number of integrity metadata scatter-gather elements* Description: This function prepares a bio for |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |