diff options
author | Aditya Kali <adityakali@google.com> | 2016-01-29 03:54:08 -0500 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2016-02-16 13:04:58 -0500 |
commit | fb3c8315650f89a1993fb3ae3e74e9c7e4a1c9c0 (patch) | |
tree | 29772e52c73463ec3bd1f2c3b3c956ceaf143071 /include/linux/kernfs.h | |
parent | a0530e087e648263f81a81d62ca020f66b54bcb0 (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>
Diffstat (limited to 'include/linux/kernfs.h')
-rw-r--r-- | include/linux/kernfs.h | 2 |
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); | |||
284 | struct kernfs_root *kernfs_root_from_sb(struct super_block *sb); | 284 | struct kernfs_root *kernfs_root_from_sb(struct super_block *sb); |
285 | struct inode *kernfs_get_inode(struct super_block *sb, struct kernfs_node *kn); | 285 | struct inode *kernfs_get_inode(struct super_block *sb, struct kernfs_node *kn); |
286 | 286 | ||
287 | struct dentry *kernfs_node_dentry(struct kernfs_node *kn, | ||
288 | struct super_block *sb); | ||
287 | struct kernfs_root *kernfs_create_root(struct kernfs_syscall_ops *scops, | 289 | struct kernfs_root *kernfs_create_root(struct kernfs_syscall_ops *scops, |
288 | unsigned int flags, void *priv); | 290 | unsigned int flags, void *priv); |
289 | void kernfs_destroy_root(struct kernfs_root *root); | 291 | void kernfs_destroy_root(struct kernfs_root *root); |