Function report |
Source Code:block\partitions\ldm.c |
Create Date:2022-07-28 17:28:14 |
| 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_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
Proto:static bool ldm_parse_prt3(const u8 *buffer, int buflen, struct vblk *vb)
Type:bool
Parameter:
| Type | Parameter | Name |
|---|---|---|
| const u8 * | buffer | |
| int | buflen | |
| struct vblk * | vb |
| 935 | If r_objid < 0 Then |
| 940 | If r_name < 0 Then |
| 945 | If r_size < 0 Then |
| 950 | If r_parent < 0 Then |
| 955 | If r_diskid < 0 Then |
| 959 | If buffer[0x12] & VBLK_FLAG_PART_INDEX Then |
| 961 | If r_index < 0 Then |
| 966 | Else |
| 970 | If len < 0 Then |
| 974 | len += VBLK_SIZE_PRT3 |
| 975 | If len > get_unaligned_be32(buffer + 0x14) Then |
| 976 | ldm_error("len %d > BE32(buffer + 0x14) %d", len, get_unaligned_be32(buffer + 0x14)) |
| 978 | Return false |
| 981 | VBLK Partition = get_unaligned_be64(buffer + 0x24 + r_name) |
| 982 | volume_offset = get_unaligned_be64(buffer + 0x2C + r_name) |
| 986 | If flags & VBLK_FLAG_PART_INDEX Then partnum = buffer[0x35 + r_diskid] |
| 988 | Else partnum = 0 |
| 990 | 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 |