Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:__disk_get_part

Proto:struct hd_struct *__disk_get_part(struct gendisk *disk, int partno)

Type:struct hd_struct

Parameter:

TypeParameterName
struct gendisk *disk
intpartno
113  ptbl = fetch RCU-protected pointer for dereferencing( 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.)
115  If Value for the false possibility is greater at compile time(partno < 0 || partno >= len) Then Return NULL
117  Return fetch RCU-protected pointer for dereferencing(part[partno])
Caller
NameDescribe
disk_get_partdisk_get_part - get partition*@disk: disk to look partition from*@partno: partition number* Look for partition @partno from @disk. If found, increment* reference count and return it.* CONTEXT:* Don't care.* RETURNS: