Function report |
Source Code:block\partition-generic.c |
Create Date:2022-07-28 17:21:22 |
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_partitions
Proto:int blk_add_partitions(struct gendisk *disk, struct block_device *bdev)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct gendisk * | disk | |
struct block_device * | bdev |
540 | If Not disk_part_scan_enabled(disk) Then Return 0 |
543 | state = check_partition(disk, bdev) |
544 | If Not state Then Return 0 |
554 | If disk_unlock_native_capacity(disk) Then Return -EAGAIN |
557 | Return -EIO |
563 | If zoned == Host-managed zoned block device Then |
564 | pr_warn("%s: ignoring partition table on host managed zoned block device\n", name of major driver ) |
566 | ret = 0 |
567 | Go to out_free_state |
575 | If access_beyond_eod Then |
579 | If disk_unlock_native_capacity(disk) Then Go to out_free_state |
597 | Go to out_free_state |
599 | ret = 0 |
600 | out_free_state : |
601 | free_partitions(state) |
602 | Return ret |
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 |