summaryrefslogtreecommitdiffstats
path: root/include/linux/seq_file.h
diff options
context:
space:
mode:
authorMiklos Szeredi <mszeredi@suse.cz>2008-03-27 13:06:21 +0100
committerAl Viro <viro@zeniv.linux.org.uk>2008-04-23 00:04:38 -0400
commit9d1bc60138977d9c79471b344a64f2df13b2ccef (patch)
tree84ed2e1920a1a88ae84515bd9d90240faed5805c /include/linux/seq_file.h
parent6092d048183b76bfa3f84b32f8158dd8d10bd811 (diff)
downloadop-kernel-dev-9d1bc60138977d9c79471b344a64f2df13b2ccef.zip
op-kernel-dev-9d1bc60138977d9c79471b344a64f2df13b2ccef.tar.gz
[patch 2/7] vfs: mountinfo: add seq_file_root()
Add a new function: seq_file_root() This is similar to seq_path(), but calculates the path relative to the given root, instead of current->fs->root. If the path was unreachable from root, then modify the root parameter to reflect this. Signed-off-by: Miklos Szeredi <mszeredi@suse.cz> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'include/linux/seq_file.h')
-rw-r--r--include/linux/seq_file.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/seq_file.h b/include/linux/seq_file.h
index 11676cc..5b5369c 100644
--- a/include/linux/seq_file.h
+++ b/include/linux/seq_file.h
@@ -46,6 +46,8 @@ int seq_printf(struct seq_file *, const char *, ...)
int seq_path(struct seq_file *, struct path *, char *);
int seq_dentry(struct seq_file *, struct dentry *, char *);
+int seq_path_root(struct seq_file *m, struct path *path, struct path *root,
+ char *esc);
int single_open(struct file *, int (*)(struct seq_file *, void *), void *);
int single_release(struct inode *, struct file *);
OpenPOWER on IntegriCloud