Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\device.h Create Date:2022-07-28 05:44:27
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:kobj_to_dev

Proto:static inline struct device *kobj_to_dev(struct kobject *kobj)

Type:struct device

Parameter:

TypeParameterName
struct kobject *kobj
1354  Return container_of - cast a member of a structure out to the containing structure*@ptr: the pointer to the member.*@type: the type of the container struct this is embedded in.*@member: the name of the member within the struct.(kobj, structdevice, kobj)
Caller
NameDescribe
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.