Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\genhd.h Create Date:2022-07-28 05:44:34
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:part_to_disk

Proto:static inline struct gendisk *part_to_disk(struct hd_struct *part)

Type:struct gendisk

Parameter:

TypeParameterName
struct hd_struct *part
226  If Value is more likely to compile time(part) Then
227  If partno Then Return dev_to_disk(parent)
229  Else Return dev_to_disk(part_to_dev(part))
232  Return NULL
Caller
NameDescribe
devt_from_partuuiddevt_from_partuuid - looks up the dev_t of a partition by its UUID*@uuid_str: char array containing ascii UUID* The function will return the first partition which contains a matching* UUID value in its partition_meta_info struct. This does not search
update_io_ticks
part_inc_in_flight
part_dec_in_flight
blk_alloc_devtlk_alloc_devt - allocate a dev_t for a partition*@part: partition to allocate dev_t for*@devt: out parameter for resulting dev_t* Allocate a dev_t for block device
get_gendiskget_gendisk - get partitioning information for a given device*@devt: device to get partitioning information for*@partno: returned partition index* This function gets the structure containing partitioning* information for the given device @devt.
part_stat_show
part_inflight_show