History

Fix typos in Documentation/filesystems/seq_file.txt

A couple of typos crept into the newly added document about the seq_file interface. This patch corrects those typos and simultaneously deletes unnecessary trailing spaces.

Dmitri Vorobiev committed 18 years ago

Commit b82d4041 parent 1f4deba1 file · +3 −3Browse files

Unified · Split

Documentation/filesystems/seq_file.txt+3−3
@@ -92,7 +92,7 @@ implementations; in most cases the start() function should check for a · 91 unmodified lines
92"past end of file" condition and return NULL if need be.92"past end of file" condition and return NULL if need be.
93 93
94For more complicated applications, the private field of the seq_file94For more complicated applications, the private field of the seq_file
95structure can be used. There is also a special value whch can be returned95structure can be used. There is also a special value which can be returned
96by the start() function called SEQ_START_TOKEN; it can be used if you wish96by the start() function called SEQ_START_TOKEN; it can be used if you wish
97to instruct your show() function (described below) to print a header at the97to instruct your show() function (described below) to print a header at the
98top of the output. SEQ_START_TOKEN should only be used if the offset is98top of the output. SEQ_START_TOKEN should only be used if the offset is
@@ -146,7 +146,7 @@ the four functions we have just defined: · 47 unmodified lines
146This structure will be needed to tie our iterator to the /proc file in146This structure will be needed to tie our iterator to the /proc file in
147a little bit.147a little bit.
148 148
149It's worth noting that the interator value returned by start() and149It's worth noting that the iterator value returned by start() and
150manipulated by the other functions is considered to be completely opaque by150manipulated by the other functions is considered to be completely opaque by
151the seq_file code. It can thus be anything that is useful in stepping151the seq_file code. It can thus be anything that is useful in stepping
152through the data to be output. Counters can be useful, but it could also be152through the data to be output. Counters can be useful, but it could also be
@@ -262,7 +262,7 @@ routines useful: · 109 unmodified lines
262 262
263These helpers will interpret pos as a position within the list and iterate263These helpers will interpret pos as a position within the list and iterate
264accordingly. Your start() and next() functions need only invoke the264accordingly. Your start() and next() functions need only invoke the
265seq_list_* helpers with a pointer to the appropriate list_head structure. 265seq_list_* helpers with a pointer to the appropriate list_head structure.
266 266
267 267
268The extra-simple version268The extra-simple version