Lines Matching refs:iterator
37 * An iterator interface which lets a virtual file implementation
73 The iterator interface
77 iterator object that allows stepping through the data of interest
78 during a "session" (roughly one read() system call). If the iterator
81 in whatever way is convenient - the iterator need only exist
82 transiently during a session. If the iterator cannot easily find a
84 iterator can be stored in the private data area and continue from one
88 table, for example, could provide a simple iterator that interprets
99 The /proc/sequence iterator just uses the count of the next number it
102 Four functions must be implemented to make the iterator work. The
104 argument, returning an iterator which will start reading at that
120 The entire data structure for this iterator is a single loff_t value
122 iterator, but that will not be the case for most other seq_file
137 move the iterator forward to the next position in the sequence. The
140 next() function returns a new iterator, or NULL if the sequence is
151 to find the new location in the sequence. When the iterator is being
159 iterator, this can result in corner cases where the last entry in the
167 up. If dynamic memory is allocated for the iterator, stop() is the
180 by the iterator for output. The example module's show() function is::
196 seq_file iterator is finished by creating a seq_operations structure with
206 This structure will be needed to tie our iterator to the /proc file in
209 It's worth noting that the iterator value returned by start() and
215 iterator function. However, the seq_file code (by design) will not sleep
218 other locks while the iterator is active.
223 guarantee that the iterator will be passed to show(), though in practice
231 iterator and getting it into the user's buffer. But, for that to work, that
293 file->private_data. If you have an application where the same iterator can
296 by the iterator functions.