函数逻辑报告 | 
Source Code:block\bio-integrity.c | 
Create Date:2022-07-27 19:37:43 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| 首页 | 函数Tree | 
| 注解内核,赢得工具 | 下载SCCT | English | 
函数名称:_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
函数原型:struct bio_integrity_payload *bio_integrity_alloc(struct bio *bio, gfp_t gfp_mask, unsigned int nr_vecs)
返回类型:struct bio_integrity_payload
参数:
| 类型 | 参数 | 名称 | 
|---|---|---|
| struct bio * | bio | |
| gfp_t | gfp_mask | |
| unsigned int | nr_vecs | 
| 45 | 如果非bs或非mempool_initialized( & bio_integrity_pool)则 | 
| 47 | inline_vecs等于nr_vecs | 
| 48 | 否则 | 
| 53 | 如果此条件成立可能性小(为编译器优化)(!bip)则返回:错误号 | 
| 58 | 如果nr_vecs大于inline_vecs则 | 
| 59 | idx等于0 | 
| 61 | bip_vec等于bvec_alloc(gfp_mask, nr_vecs, & idx, & bvec_integrity_pool) | 
| 67 | 否则 | 
| 72 | parent bio 等于bio | 
| 73 | data integrity 等于bip | 
| 76 | 返回:bip | 
| 77 | err : | 
| 79 | 返回:错误号 | 
| 名称 | 描述 | 
|---|---|
| bio_integrity_prep | _integrity_prep - Prepare bio for integrity I/O*@bio: bio to prepare* Description: Checks if the bio already has an integrity payload attached.* If it does, the payload has been generated by another kernel subsystem,* and we just pass it through | 
| bio_integrity_clone | _integrity_clone - Callback for cloning bios with integrity metadata*@bio: New bio*@bio_src: Original bio*@gfp_mask: Memory allocation mask* Description: Called to allocate a bip when cloning a bio | 
| 源代码转换工具 开放的插件接口  | X | 
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码  |