Function report |
Source Code:block\partitions\sysv68.c |
Create Date:2022-07-28 17:32:10 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:sysv68_partition
Proto:int sysv68_partition(struct parsed_partitions *state)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct parsed_partitions * | state |
53 | slot = 1 |
60 | data = read_part_sector(state, 0, & sect) |
61 | If Not data Then Return -1 |
65 | If memcmp(ASCII string "MOTOROLA" , "MOTOROLA", size of ASCII string "MOTOROLA" ) Then |
66 | put_dev_sector(sect) |
67 | Return 0 |
70 | i = be32_to_cpu(Slice table block number ) |
71 | put_dev_sector(sect) |
73 | data = read_part_sector(state, i, & sect) |
74 | If Not data Then Return -1 |
77 | slices -= 1 |
84 | If be32_to_cpu(slice size (in blocks) ) Then |
91 | slot++ |
94 | put_dev_sector(sect) |
95 | 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 |