Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name: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

Proto:static inline sector_t part_nr_sects_read(struct hd_struct *part)

Type:sector_t

Parameter:

TypeParameterName
struct hd_struct *part
754  Return * 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.
Caller
NameDescribe
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