函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:block\partition-generic.c Create Date:2022-07-27 18:56:35
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:blk_drop_partitions

函数原型:int blk_drop_partitions(struct gendisk *disk, struct block_device *bdev)

返回类型:int

参数:

类型参数名称
struct gendisk *disk
struct block_device *bdev
469  如果非disk_part_scan_enabled(disk)则返回:0
471  如果 number of times partitions within this device have been opened. bd_super则返回:负EBUSY
473  res等于invalidate_partition(disk, 0)
474  如果res则返回: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 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.循环
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  返回:0