函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:create_setup_data_node

函数原型:static int __init create_setup_data_node(struct kobject *parent, struct kobject **kobjp, int nr)

返回类型:int

参数:

类型参数名称
struct kobject *parent
struct kobject **kobjp
intnr
229  ret等于0
233  snprintf - Format a string and place it in a buffer*@buf: The buffer to place the result into*@size: The size of the buffer, including the trailing null space*@fmt: The format string to use*@
235  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
236  如果非kobj则返回:负ENOMEM
239  ret等于get_setup_data_size(nr, & size)
240  如果ret则转到:out_kobj
243  属性大小等于size
244  ret等于sysfs_create_group(kobj, & setup_data_attr_group)
245  如果ret则转到:out_kobj
247  kobjp等于kobj
249  返回:0
250  out_kobj :
251  递减引用计数对象
252  返回:ret
调用者
名称描述
create_setup_data_nodes