函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:ksysfs_init

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

返回类型:int

参数:

243  kernel_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
244  如果非kernel_kobj
245  error等于负ENOMEM
246  转到:exit
248  error等于sysfs_create_group(kernel_kobj, & kernel_attr_group)
249  如果error则转到:kset_exit
252  如果notes_size大于0则
253  属性大小等于notes_size
254  error等于sysfs_create_bin_file(kernel_kobj, & notes_attr)
255  如果error则转到:group_exit
259  返回:0
261  group_exit :
262  sysfs_remove_group(kernel_kobj, & kernel_attr_group)
263  kset_exit :
264  递减引用计数对象
265  exit :
266  返回:error