函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:show_partition

函数原型:static int show_partition(struct seq_file *seqf, void *v)

返回类型:int

参数:

类型参数名称
struct seq_file *seqf
void *v
1053  sgp等于v
1059  如果非get_capacity(sgp)或非disk_max_parts(sgp)且flags按位与GENHD_FL_REMOVABLE则返回:0
1062  如果flags按位与GENHD_FL_SUPPRESS_PARTITION_INFO则返回:0
1066  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.
1067 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.循环
1068  seq_printf(seqf, "%4d %7d %10llu %s\n", MAJOR(part_devt(part)), MINOR(part_devt(part)), (unsignedlonglong)Any access of part->nr_sects which is not protected by partition* bd_mutex or gendisk bdev bd_mutex, should be done using this* accessor function >> 1, disk_name(sgp, partno, buf))
1072  disk_part_iter_exit - finish up partition iteration*@piter: iter of interest* Called when iteration is over. Cleans up @piter.* CONTEXT:* Don't care.
1074  返回:0