函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:get_disk_and_module

函数原型:struct kobject *get_disk_and_module(struct gendisk *disk)

返回类型:struct kobject

参数:

类型参数名称
struct gendisk *disk
1527  如果非fops则返回:NULL
1529  owner等于owner
1530  如果owner且非判断模块是否处于活动状态则返回:NULL
1532  kobj等于kobject_get_unless_zero( & kobj)
1533  如果(kobj == NULL)则
1534  module_put(owner)
1535  返回:NULL
1537  返回:kobj
调用者
名称描述
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.