Function report |
Source Code:block\partition-generic.c |
Create Date:2022-07-28 17:21:18 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:blk_add_partition
Proto:static bool blk_add_partition(struct gendisk *disk, struct block_device *bdev, struct parsed_partitions *state, int p)
Type:bool
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct gendisk * | disk | |
| struct block_device * | bdev | |
| struct parsed_partitions * | state | |
| int | p |
| 492 | If Not size Then Return true |
| 495 | If from >= get_capacity(disk) Then |
| 499 | If disk_unlock_native_capacity(disk) Then Return false |
| 501 | Return true |
| 504 | If from + size > get_capacity(disk) Then |
| 509 | If disk_unlock_native_capacity(disk) Then Return false |
| 517 | size = get_capacity(disk) - from |
| 520 | part = Must be called either with bd_mutex held, before a disk can be opened or* after all disk users are gone. |
| 532 | Return true |
| 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 |