[Devel,2/3] proc-net: proc_net_create() helper introduced

Submitted by Stanislav Kinsburskiy on July 20, 2017, 4:47 p.m.

Details

Message ID 20170720164753.28469.48086.stgit@localhost.localdomain
State New
Series "proc-net: rework containerization"
Headers show

Commit Message

Stanislav Kinsburskiy July 20, 2017, 4:47 p.m.
Signed-off-by: Stanislav Kinsburskiy <skinsbursky@virtuozzo.com>
---
 include/linux/proc_fs.h |    7 +++++++
 1 file changed, 7 insertions(+)

Patch hide | download patch | download mbox

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 *);