Function report |
Source Code:block\partitions\ldm.c |
Create Date:2022-07-28 17:28:23 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:ldm_parse_vol5 - Read a raw VBLK Volume 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
Proto:static bool ldm_parse_vol5(const u8 *buffer, int buflen, struct vblk *vb)
Type:bool
Parameter:
Type | Parameter | Name |
---|---|---|
const u8 * | buffer | |
int | buflen | |
struct vblk * | vb |
1012 | If r_objid < 0 Then |
1017 | If r_name < 0 Then |
1022 | If r_vtype < 0 Then |
1027 | If r_disable_drive_letter < 0 Then |
1028 | ldm_error("r_disable_drive_letter %d < 0", r_disable_drive_letter) |
1030 | Return false |
1033 | If r_child < 0 Then |
1038 | If r_size < 0 Then |
1042 | If buffer[0x12] & VBLK_FLAG_VOLU_ID1 Then |
1044 | If r_id1 < 0 Then |
1050 | If buffer[0x12] & VBLK_FLAG_VOLU_ID2 Then |
1052 | If r_id2 < 0 Then |
1058 | If buffer[0x12] & VBLK_FLAG_VOLU_SIZE Then |
1060 | If r_size2 < 0 Then |
1066 | If buffer[0x12] & VBLK_FLAG_VOLU_DRIVE Then |
1068 | If r_drive < 0 Then |
1075 | If len < 0 Then |
1079 | len += VBLK_SIZE_VOL5 |
1080 | If len > get_unaligned_be32(buffer + 0x14) Then |
1081 | ldm_error("len %d > BE32(buffer + 0x14) %d", len, get_unaligned_be32(buffer + 0x14)) |
1083 | Return false |
1088 | memcpy(volume_state, buffer + 0x18 + r_disable_drive_letter, size of volume_state ) |
1091 | partition_type = buffer[0x41 + r_size] |
1093 | If buffer[0x12] & VBLK_FLAG_VOLU_DRIVE Then |
1097 | Return true |
Name | Describe |
---|---|
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 |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |