Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\ksysfs.c Create Date:2022-07-28 07:42:45
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:boot_params_ksysfs_init

Proto:static int __init boot_params_ksysfs_init(void)

Type:int

Parameter:Nothing

332  boot_params_kobj = kobject_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
334  If Not boot_params_kobj Then
335  ret = -ENOMEM
336  Go to out
339  ret = sysfs_create_group(boot_params_kobj, & boot_params_attr_group)
340  If ret Then Go to out_boot_params_kobj
343  ret = create_setup_data_nodes(boot_params_kobj)
344  If ret Then Go to out_create_group
347  Return 0
348  out_create_group :
349  sysfs_remove_group(boot_params_kobj, & boot_params_attr_group)
350  out_boot_params_kobj :
351  kobject_put() - Decrement refcount for object.*@kobj: object.* Decrement the refcount, and if 0, call kobject_cleanup().
352  out :
353  Return ret