Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:sector_in_part

Proto:static inline int sector_in_part(struct hd_struct *part, sector_t sector)

Type:int

Parameter:

TypeParameterName
struct hd_struct *part
sector_tsector
261  Return start_sect <= sector && sector < start_sect + 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
Caller
NameDescribe
disk_map_sector_rcudisk_map_sector_rcu - map sector to partition*@disk: gendisk of interest*@sector: sector to map* Find out which partition @sector maps to on @disk. This is* primarily used for stats accounting.* CONTEXT:* RCU read locked