Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:show_partition

Proto:static int show_partition(struct seq_file *seqf, void *v)

Type:int

Parameter:

TypeParameterName
struct seq_file *seqf
void *v
1053  sgp = v
1059  If Not get_capacity(sgp) || Not disk_max_parts(sgp) && flags & GENHD_FL_REMOVABLE Then Return 0
1062  If flags & GENHD_FL_SUPPRESS_PARTITION_INFO Then Return 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  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
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  Return 0