Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:print a full list of all partitions - intended for places where the root* filesystem can't be mounted and thus to give the victim some idea of what* went wrong

Proto:void __init printk_all_partitions(void)

Type:void

Parameter:Nothing

950  class_dev_iter_init( & iter, & block_class, NULL, & disk_type)
951  When dev = class_dev_iter_next( & iter) cycle
952  disk = dev_to_disk(dev)
962  If get_capacity(disk) == 0 || flags & GENHD_FL_SUPPRESS_PARTITION_INFO Then Continue
971  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.
973  is_part0 = part == part0
980  If is_part0 Then
989  disk_part_iter_exit - finish up partition iteration*@piter: iter of interest* Called when iteration is over. Cleans up @piter.* CONTEXT:* Don't care.
991  class_dev_iter_exit( & iter)
Caller
NameDescribe
mount_block_root