diff options
author | Jonathan Corbet <corbet@lwn.net> | 2008-04-25 13:56:37 -0400 |
---|---|---|
committer | Jonathan Corbet <corbet@lwn.net> | 2008-04-25 13:56:37 -0400 |
commit | 9f4def9ae4772ea3da5e2359de698742ebae53b5 (patch) | |
tree | 7c5a0297807ec25149a8287abcdc05c4969a0eb8 /Documentation | |
parent | 0fe8a3ce73ef31d1480e82798503948a979e8e52 (diff) |
Document seq_path_root()
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/filesystems/seq_file.txt | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/Documentation/filesystems/seq_file.txt b/Documentation/filesystems/seq_file.txt index 0ab92c260894..b843743aa0b5 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 | |||
187 | expect. seq_escape() is like seq_puts(), except that any character in s | 187 | expect. seq_escape() is like seq_puts(), except that any character in s |
188 | which is in the string esc will be represented in octal form in the output. | 188 | which is in the string esc will be represented in octal form in the output. |
189 | 189 | ||
190 | There is also a function for printing filenames: | 190 | There is also a pair of functions for printing filenames: |
191 | 191 | ||
192 | int seq_path(struct seq_file *m, struct path *path, char *esc); | 192 | int seq_path(struct seq_file *m, struct path *path, char *esc); |
193 | int seq_path_root(struct seq_file *m, struct path *path, | ||
194 | struct path *root, char *esc) | ||
193 | 195 | ||
194 | Here, path indicates the file of interest, and esc is a set of characters | 196 | Here, path indicates the file of interest, and esc is a set of characters |
195 | which should be escaped in the output. | 197 | which should be escaped in the output. A call to seq_path() will output |
198 | the path relative to the current process's filesystem root. If a different | ||
199 | root is desired, it can be used with seq_path_root(). Note that, if it | ||
200 | turns out that path cannot be reached from root, the value of root will be | ||
201 | changed in seq_file_root() to a root which *does* work. | ||
196 | 202 | ||
197 | 203 | ||
198 | Making it all work | 204 | Making it all work |