diff options
author | Christoph Hellwig | 2018-04-24 17:00:52 +0200 |
---|---|---|
committer | Christoph Hellwig | 2018-05-16 07:23:35 +0200 |
commit | 61172eaea1adf64a77e563b0cb30d7ee88d9aa80 (patch) | |
tree | 07ca85b5531274c7bb4063ef391f2b8d2caaf057 /fs/proc/internal.h | |
parent | proc: don't detour through seq->private to get the inode (diff) | |
download | kernel-qcow2-linux-61172eaea1adf64a77e563b0cb30d7ee88d9aa80.tar.gz kernel-qcow2-linux-61172eaea1adf64a77e563b0cb30d7ee88d9aa80.tar.xz kernel-qcow2-linux-61172eaea1adf64a77e563b0cb30d7ee88d9aa80.zip |
proc: simplify proc_register calling conventions
Return registered entry on success, return NULL on failure and free the
passed in entry. Also expose it in internal.h as we'll start using it
in proc_net.c soon.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'fs/proc/internal.h')
-rw-r--r-- | fs/proc/internal.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/proc/internal.h b/fs/proc/internal.h index 0f1692e63cb6..488e67490312 100644 --- a/fs/proc/internal.h +++ b/fs/proc/internal.h @@ -162,6 +162,8 @@ extern bool proc_fill_cache(struct file *, struct dir_context *, const char *, i /* * generic.c */ +struct proc_dir_entry *proc_register(struct proc_dir_entry *dir, + struct proc_dir_entry *dp); extern struct dentry *proc_lookup(struct inode *, struct dentry *, unsigned int); struct dentry *proc_lookup_de(struct inode *, struct dentry *, struct proc_dir_entry *); extern int proc_readdir(struct file *, struct dir_context *); |