Function report |
Source Code:block\partitions\cmdline.c |
Create Date:2022-07-28 17:26:54 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:Purpose: allocate cmdline partitions.* Returns:* -1 if unable to read the partition table* 0 if this isn't our partition table* 1 if successful
Proto:int cmdline_partition(struct parsed_partitions *state)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct parsed_partitions * | state |
130 | If cmdline Then |
131 | If bdev_parts Then cmdline_parts_free( & bdev_parts) |
134 | If cmdline_parts_parse( & bdev_parts, cmdline) Then |
135 | cmdline = NULL |
136 | Return -1 |
138 | cmdline = NULL |
141 | If Not bdev_parts Then Return 0 |
145 | parts = cmdline_parts_find(bdev_parts, bdev) |
146 | If Not parts Then Return 0 |
149 | disk_size = get_capacity(bd_disk) << 9 |
151 | cmdline_parts_set(parts, disk_size, 1, add_part, (void * )state) |
152 | cmdline_parts_verifier(1, state) |
156 | 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 |