Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\sysfs.h Create Date:2022-07-28 05:44:08
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:sysfs_create_file

Proto:static inline int __must_check sysfs_create_file(struct kobject *kobj, const struct attribute *attr)

Type:int

Parameter:

TypeParameterName
struct kobject *kobj
const struct attribute *attr
530  Return sysfs_create_file_ns(kobj, attr, NULL)
Caller
NameDescribe
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.