Function report |
Source Code:block\partitions\karma.c |
Create Date:2022-07-28 17:32:02 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:karma_partition
Proto:int karma_partition(struct parsed_partitions *state)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct parsed_partitions * | state |
17 | slot = 1 |
20 | struct disklabel{u8 d_reserved[270];struct d_partition{__le32 p_res;u8 p_fstype;u8 p_res2[3];__le32 p_offset;__le32 p_size;}d_partitions[2];u8 d_blank[208];__le16 d_magic;}gcc: https://gcc.gnu.org/onlinedocs/gcc/Common-Type-Attributes.html#index-packed-type-attribute* clang: https://gcc.gnu.org/onlinedocs/gcc/Common-Variable-Attributes.html#index-packed-variable-attribute * label |
34 | data = read_part_sector(state, 0, & sect) |
35 | If Not data Then Return -1 |
39 | If le16_to_cpu(d_magic) != s/partitions/karma.h Then |
40 | put_dev_sector(sect) |
41 | Return 0 |
44 | p = d_partitions |
49 | If p_fstype == 0x4d && le32_to_cpu(p_size) Then |
50 | put_partition(state, slot, le32_to_cpu(p_offset), le32_to_cpu(p_size)) |
53 | slot++ |
56 | put_dev_sector(sect) |
57 | Return 1 |
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 |