Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:kobject_create() - Create a struct kobject dynamically.* This function creates a kobject structure dynamically and sets it up* to be a "dynamic" kobject with a default release function set up.

Proto:struct kobject *kobject_create(void)

Type:struct kobject

Parameter:Nothing

770  kobj = kzalloc - allocate memory. The memory is set to zero.*@size: how many bytes of memory are required.*@flags: the type of memory to allocate (see kmalloc).
771  If Not kobj Then Return NULL
774  kobject_init() - Initialize a kobject structure
775  Return kobj
Caller
NameDescribe
kobject_create_and_addkobject_create_and_add() - Create a struct kobject dynamically and* register it with sysfs.*@name: the name for the kobject*@parent: the parent kobject of this kobject, if any.* This function creates a kobject structure dynamically and registers it