函数逻辑报告 |
Source Code:block\partitions\ldm.c |
Create Date:2022-07-27 19:03:38 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:ldm_parse_prt3 - Read a raw VBLK Partition object into a vblk structure*@buffer: Block of data being worked on*@buflen: Size of the block of data*@vb: In-memory vblk in which to return information
函数原型:static bool ldm_parse_prt3(const u8 *buffer, int buflen, struct vblk *vb)
返回类型:bool
参数:
类型 | 参数 | 名称 |
---|---|---|
const u8 * | buffer | |
int | buflen | |
struct vblk * | vb |
935 | 如果r_objid小于0则 |
940 | 如果r_name小于0则 |
945 | 如果r_size小于0则 |
950 | 如果r_parent小于0则 |
955 | 如果r_diskid小于0则 |
959 | 如果buffer[0x12]按位与VBLK_FLAG_PART_INDEX则 |
961 | 如果r_index小于0则 |
966 | 否则 |
970 | 如果len小于0则 |
974 | len加等于VBLK_SIZE_PRT3 |
975 | 如果len大于get_unaligned_be32(buffer + 0x14)则 |
976 | ldm_error("len %d > BE32(buffer + 0x14) %d", len, get_unaligned_be32(buffer + 0x14)) |
978 | 返回:false |
981 | VBLK Partition 等于get_unaligned_be64(buffer + 0x24 + r_name) |
982 | volume_offset等于get_unaligned_be64(buffer + 0x2C + r_name) |
986 | 如果flags按位与VBLK_FLAG_PART_INDEX则partnum等于buffer[0x35 + r_diskid] |
988 | 否则partnum等于0 |
990 | 返回:true |
名称 | 描述 |
---|---|
ldm_parse_vblk | 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 |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |