summaryrefslogtreecommitdiff
path: root/include/linux/kernfs.h
diff options
context:
space:
mode:
authorAditya Kali <adityakali@google.com>2016-01-29 02:54:08 -0600
committerMichael Bestas <mkbestas@lineageos.org>2022-04-19 00:51:36 +0300
commit7c2ad1220f8fb6b6c77a5324979e4756d202f995 (patch)
tree0092fd628fb70b12d523fe35b3fa414d7acab225 /include/linux/kernfs.h
parent483cbe97b0e4112d1e48df80de2e6a2c8a650b15 (diff)
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> Signed-off-by: Chatur27 <jasonbright2709@gmail.com>
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 e1c062dae8ba..4389b3157168 100644
--- a/include/linux/kernfs.h
+++ b/include/linux/kernfs.h
@@ -299,6 +299,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);