函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:sector_in_part

函数原型:static inline int sector_in_part(struct hd_struct *part, sector_t sector)

返回类型:int

参数:

类型参数名称
struct hd_struct *part
sector_tsector
261  返回:start_sect小于等于sectorsector小于start_sectAny 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
调用者
名称描述
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