[Devel] [PATCH 2/3] proc-net: proc_net_create() helper introduced
Stanislav Kinsburskiy
skinsbursky at virtuozzo.com
Thu Jul 20 19:47:53 MSK 2017
Signed-off-by: Stanislav Kinsburskiy <skinsbursky at virtuozzo.com>
---
include/linux/proc_fs.h | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/include/linux/proc_fs.h b/include/linux/proc_fs.h
index 4660327..1b516bc 100644
--- a/include/linux/proc_fs.h
+++ b/include/linux/proc_fs.h
@@ -67,6 +67,13 @@ static inline struct proc_dir_entry *proc_create(
return proc_create_data(name, mode, parent, proc_fops, NULL);
}
+static inline struct proc_dir_entry *proc_net_create(
+ const char *name, umode_t mode, struct proc_dir_entry *parent,
+ const struct file_operations *fops)
+{
+ return proc_net_create_data(name, mode, parent, fops, NULL);
+}
+
extern void proc_set_size(struct proc_dir_entry *, loff_t);
extern void proc_set_user(struct proc_dir_entry *, kuid_t, kgid_t);
extern void *PDE_DATA(const struct inode *);
More information about the Devel
mailing list