Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\notifier-error-inject.c Create Date:2022-07-28 07:11:40
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:notifier_err_inject_init

Proto:struct dentry *notifier_err_inject_init(const char *name, struct dentry *parent, struct notifier_err_inject *err_inject, int priority)

Type:struct dentry

Parameter:

TypeParameterName
const char *name
struct dentry *parent
struct notifier_err_inject *err_inject
intpriority
54  mode = S_IFREG | S_IRUSR | S_IWUSR
58  notifier_call = notifier_err_inject_callback
59  priority = priority
61  dir = debugfs_create_dir(name, parent)
63  actions_dir = debugfs_create_dir("actions", dir)
65  When name cycle
68  action_dir = debugfs_create_dir(name, actions_dir)
75  debugfs_create_errno("error", mode, action_dir, & error)
77  Return dir
Caller
NameDescribe
err_inject_init
netdev_err_inject_init
err_inject_init
err_inject_init