summaryrefslogtreecommitdiff
path: root/include/linux/kernfs.h
diff options
context:
space:
mode:
authorAditya Kali <adityakali@google.com>2016-01-29 02:54:08 -0600
committerTejun Heo <tj@kernel.org>2016-02-16 13:04:58 -0500
commitfb3c8315650f89a1993fb3ae3e74e9c7e4a1c9c0 (patch)
tree29772e52c73463ec3bd1f2c3b3c956ceaf143071 /include/linux/kernfs.h
parenta0530e087e648263f81a81d62ca020f66b54bcb0 (diff)
downloadlwn-fb3c8315650f89a1993fb3ae3e74e9c7e4a1c9c0.tar.gz
lwn-fb3c8315650f89a1993fb3ae3e74e9c7e4a1c9c0.zip
kernfs: define kernfs_node_dentry
Add a new kernfs api is added to lookup the dentry for a particular kernfs path. Signed-off-by: Aditya Kali <adityakali@google.com> Signed-off-by: Serge E. Hallyn <serge.hallyn@canonical.com> Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'include/linux/kernfs.h')
-rw-r--r--include/linux/kernfs.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/kernfs.h b/include/linux/kernfs.h
index 716bfdede5f5..c06c44242f39 100644
--- a/include/linux/kernfs.h
+++ b/include/linux/kernfs.h
@@ -284,6 +284,8 @@ struct kernfs_node *kernfs_node_from_dentry(struct dentry *dentry);
struct kernfs_root *kernfs_root_from_sb(struct super_block *sb);
struct inode *kernfs_get_inode(struct super_block *sb, struct kernfs_node *kn);
+struct dentry *kernfs_node_dentry(struct kernfs_node *kn,
+ struct super_block *sb);
struct kernfs_root *kernfs_create_root(struct kernfs_syscall_ops *scops,
unsigned int flags, void *priv);
void kernfs_destroy_root(struct kernfs_root *root);