函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称: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

函数原型:static inline sector_t part_nr_sects_read(struct hd_struct *part)

返回类型:sector_t

参数:

类型参数名称
struct hd_struct *part
754  返回:* nr_sects is protected by sequence counter. One might extend a * partition while IO is happening to it and update of nr_sects * can be non-atomic on 32bit machines with 64bit sector_t.
调用者
名称描述
blk_partition_remapRemap block n of partition p to block n+start(p) of the disk.
disk_part_iter_nextdisk_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.
sector_in_part
printk_all_partitionsprint 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
show_partition
part_size_show
guard_bio_eodThis allows us to do IO even on the odd last sectors* of a device, even if the block size is some multiple* of the physical sector size