函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\ksysfs.c Create Date:2022-07-27 08:42:30
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:boot_params_ksysfs_init

函数原型:static int __init boot_params_ksysfs_init(void)

返回类型:int

参数:

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  如果非boot_params_kobj
335  ret等于负ENOMEM
336  转到:out
339  ret等于sysfs_create_group(boot_params_kobj, & boot_params_attr_group)
340  如果ret则转到:out_boot_params_kobj
343  ret等于create_setup_data_nodes(boot_params_kobj)
344  如果ret则转到:out_create_group
347  返回:0
348  out_create_group :
349  sysfs_remove_group(boot_params_kobj, & boot_params_attr_group)
350  out_boot_params_kobj :
351  递减引用计数对象
352  out :
353  返回:ret