Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:get_disk_and_module

Proto:struct kobject *get_disk_and_module(struct gendisk *disk)

Type:struct kobject

Parameter:

TypeParameterName
struct gendisk *disk
1527  If Not fops Then Return NULL
1529  owner = owner
1530  If owner && Not try_module_get(owner) Then Return NULL
1532  kobj = kobject_get_unless_zero( & kobj)
1533  If (kobj == NULL) Then
1534  module_put(owner)
1535  Return NULL
1537  Return kobj
Caller
NameDescribe
exact_lock
get_gendiskget_gendisk - get partitioning information for a given device*@devt: device to get partitioning information for*@partno: returned partition index* This function gets the structure containing partitioning* information for the given device @devt.