函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:part_to_disk

函数原型:static inline struct gendisk *part_to_disk(struct hd_struct *part)

返回类型:struct gendisk

参数:

类型参数名称
struct hd_struct *part
226  如果此条件成立可能性大(为编译器优化)(part)则
227  如果partno则返回:dev_to_disk(parent)
229  否则返回:dev_to_disk(part_to_dev(part))
232  返回:NULL
调用者
名称描述
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