函数逻辑报告 | 
Source Code:block\partitions\ldm.c | 
Create Date:2022-07-27 19:03:53 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| 首页 | 函数Tree | 
| 注解内核,赢得工具 | 下载SCCT | English | 
函数名称:ldm_parse_vblk - Read a raw VBLK object into a vblk structure*@buf: Block of data being worked on*@len: Size of the block of data*@vb: In-memory vblk in which to return information* Read a raw VBLK object into a vblk structure
函数原型:static bool ldm_parse_vblk(const u8 *buf, int len, struct vblk *vb)
返回类型:bool
参数:
| 类型 | 参数 | 名称 | 
|---|---|---|
| const u8 * | buf | |
| int | len | |
| struct vblk * | vb | 
| 1115 | bool result = false | 
| 1121 | 如果r_objid小于0则 | 
| 1122 | ldm_error("VBLK header is corrupt.") | 
| 1123 | 返回:false | 
| 1132 | 当:type恒等于Component, version 3 | 
| 1132 | 退出 | 
| 1133 | 当:type恒等于Disk, version 3 | 
| 1133 | 退出 | 
| 1134 | 当:type恒等于Disk, version 4 | 
| 1134 | 退出 | 
| 1135 | 当:type恒等于Disk Group, version 3 | 
| 1135 | 退出 | 
| 1136 | 当:type恒等于Disk Group, version 4 | 
| 1136 | 退出 | 
| 1137 | 当:type恒等于Partition, version 3 | 
| 1137 | 退出 | 
| 1138 | 当:type恒等于Volume, version 5 | 
| 1138 | 退出 | 
| 1141 | 如果result则ldm_debug/info/error/crit - Output an error message*@f: A printf format string containing the message*@...: Variables to substitute into @f* ldm_debug() writes a DEBUG level message to the syslog but only if the* driver was compiled with debug enabled("Parsed VBLK 0x%llx (type: 0x%02x) ok.", (unsignedlonglong)obj_id, type) | 
| 1148 | 返回:result | 
| 名称 | 描述 | 
|---|---|
| ldm_ldmdb_add | ldm_ldmdb_add - Adds a raw VBLK entry to the ldmdb database*@data: Raw VBLK to add to the database*@len: Size of the raw VBLK*@ldb: Cache of the database structures* The VBLKs are sorted into categories. Partitions are also sorted by offset.* N | 
| 源代码转换工具 开放的插件接口  | X | 
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码  |