函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\sysfs.h Create Date:2022-07-27 06:45:09
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:sysfs_create_file

函数原型:static inline int __must_check sysfs_create_file(struct kobject *kobj, const struct attribute *attr)

返回类型:int

参数:

类型参数名称
struct kobject *kobj
const struct attribute *attr
530  返回:sysfs_create_file_ns(kobj, attr, NULL)
调用者
名称描述
populate_dirpopulate_dir - populate directory with attributes
elv_register_queuelv_register_queue is called from either blk_register_queue or* elevator_switch, elevator switch is prevented from being happen* in the two paths, so it is safe to not hold q->sysfs_lock.