函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

函数原型:struct hd_struct *disk_map_sector_rcu(struct gendisk *disk, sector_t sector)

返回类型:struct hd_struct

参数:

类型参数名称
struct gendisk *disk
sector_tsector
286  ptbl等于cu_dereference() - fetch RCU-protected pointer for dereferencing*@p: The pointer to read, prior to dereferencing* This is a simple wrapper around rcu_dereference_check().( Array of pointers to partitions indexed by partno. * Protected with matching bdev lock but stat and other * non-critical accesses use RCU. Always access through * helpers.)
288  part等于cu_dereference() - fetch RCU-protected pointer for dereferencing*@p: The pointer to read, prior to dereferencing* This is a simple wrapper around rcu_dereference_check().(last_lookup)
289  如果partsector_in_part(part, sector)则返回:part
292 i小于len循环
293  part等于cu_dereference() - fetch RCU-protected pointer for dereferencing*@p: The pointer to read, prior to dereferencing* This is a simple wrapper around rcu_dereference_check().(part[i])
295  如果partsector_in_part(part, sector)则
297  返回:part
300  返回:part0