Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:block\partition-generic.c Create Date:2022-07-28 17:21:14
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:blk_drop_partitions

Proto:int blk_drop_partitions(struct gendisk *disk, struct block_device *bdev)

Type:int

Parameter:

TypeParameterName
struct gendisk *disk
struct block_device *bdev
469  If Not disk_part_scan_enabled(disk) Then Return 0
471  If number of times partitions within this device have been opened. || bd_super Then Return -EBUSY
473  res = invalidate_partition(disk, 0)
474  If res Then Return res
477  disk_part_iter_init - initialize partition iterator*@piter: iterator to initialize*@disk: disk to iterate over*@flags: DISK_PITER_* flags* Initialize @piter so that it iterates over partitions of @disk.* CONTEXT:* Don't care.
478  When part = disk_part_iter_next - proceed iterator to the next partition and return it*@piter: iterator of interest* Proceed @piter to the next partition and return it.* CONTEXT:* Don't care. cycle
479  Must be called either with bd_mutex held, before a disk can be opened or* after all disk users are gone.
480  disk_part_iter_exit - finish up partition iteration*@piter: iter of interest* Called when iteration is over. Cleans up @piter.* CONTEXT:* Don't care.
482  Return 0