X-Git-Url: http://ftp.safe.ca/?a=blobdiff_plain;f=Documentation%2Ffilesystems%2Fseq_file.txt;h=b843743aa0b5928630771a0ba6e22ec65c206654;hb=ec5d7657f746c46b5fbb3dbec6d0f7d8b6b82961;hp=0ab92c260894a14f8510053647dece4bd9d48e26;hpb=22c36d18c668db1a8d92a9a47e09857974f6a49b;p=safe%2Fjmp%2Flinux-2.6 diff --git a/Documentation/filesystems/seq_file.txt b/Documentation/filesystems/seq_file.txt index 0ab92c2..b843743 100644 --- a/Documentation/filesystems/seq_file.txt +++ b/Documentation/filesystems/seq_file.txt @@ -187,12 +187,18 @@ The first two output a single character and a string, just like one would expect. seq_escape() is like seq_puts(), except that any character in s which is in the string esc will be represented in octal form in the output. -There is also a function for printing filenames: +There is also a pair of functions for printing filenames: int seq_path(struct seq_file *m, struct path *path, char *esc); + int seq_path_root(struct seq_file *m, struct path *path, + struct path *root, char *esc) Here, path indicates the file of interest, and esc is a set of characters -which should be escaped in the output. +which should be escaped in the output. A call to seq_path() will output +the path relative to the current process's filesystem root. If a different +root is desired, it can be used with seq_path_root(). Note that, if it +turns out that path cannot be reached from root, the value of root will be +changed in seq_file_root() to a root which *does* work. Making it all work