Function report |
Source Code:block\partitions\check.c |
Create Date:2022-07-28 17:25:28 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:check_partition
Proto:struct parsed_partitions *check_partition(struct gendisk *hd, struct block_device *bdev)
Type:struct parsed_partitions
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct gendisk * | hd | |
| struct block_device * | bdev |
| 148 | state = allocate_partitions(hd) |
| 149 | If Not state Then Return NULL |
| 151 | pp_buf = __get_free_page(GFP_KERNEL) |
| 152 | If Not pp_buf Then |
| 153 | free_partitions(state) |
| 154 | Return NULL |
| 156 | pp_buf[0] = '\0' |
| 161 | If isdigit(name[strlen - Find the length of a string*@s: The string to be sized - 1]) Then sprintf(name, "p") |
| 165 | When Not res && check_part[i] cycle |
| 167 | res = check_part[i++](state) |
| 168 | If res < 0 Then |
| 177 | If res > 0 Then |
| 181 | Return state |
| 183 | If access_beyond_eod Then err = -ENOSPC |
| 188 | If res Then |
| 196 | free_partitions(state) |
| Name | Describe |
|---|---|
| blk_add_partitions |
| 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 |