diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2008-08-02 00:49:18 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2008-10-23 03:34:19 -0400 |
commit | d181146572c4fa9af2a068b967cb53dcac7da944 (patch) | |
tree | 35919e1675740059cf9336c7dbff0ef35032351c /include/linux/namei.h | |
parent | 2515ddc6db8eb49a79f0fe5e67ff09ac7c81eab4 (diff) | |
download | kernel_samsung_espresso10-d181146572c4fa9af2a068b967cb53dcac7da944.zip kernel_samsung_espresso10-d181146572c4fa9af2a068b967cb53dcac7da944.tar.gz kernel_samsung_espresso10-d181146572c4fa9af2a068b967cb53dcac7da944.tar.bz2 |
[PATCH] new helper - kern_path()
Analog of lookup_path(), takes struct path *.
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'include/linux/namei.h')
-rw-r--r-- | include/linux/namei.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/namei.h b/include/linux/namei.h index 68f8c32..221e8bc 100644 --- a/include/linux/namei.h +++ b/include/linux/namei.h @@ -61,6 +61,8 @@ extern int user_path_at(int, const char __user *, unsigned, struct path *); #define user_path_dir(name, path) \ user_path_at(AT_FDCWD, name, LOOKUP_FOLLOW | LOOKUP_DIRECTORY, path) +extern int kern_path(const char *, unsigned, struct path *); + extern int path_lookup(const char *, unsigned, struct nameidata *); extern int vfs_path_lookup(struct dentry *, struct vfsmount *, const char *, unsigned int, struct nameidata *); |