Lines Matching refs:iterator
32 * An iterator interface which lets a virtual file implementation
67 The iterator interface
70 iterator object that allows stepping through the data of interest
71 during a "session" (roughly one read() system call). If the iterator
74 in whatever way is convenient - the iterator need only exist
75 transiently during a session. If the iterator cannot easily find a
77 iterator can be stored in the private data area and continue from one
81 table, for example, could provide a simple iterator that interprets
92 The /proc/sequence iterator just uses the count of the next number it
95 Four functions must be implemented to make the iterator work. The
97 argument, returning an iterator which will start reading at that
113 The entire data structure for this iterator is a single loff_t value
115 iterator, but that will not be the case for most other seq_file
128 move the iterator forward to the next position in the sequence. The
131 next() function returns a new iterator, or NULL if the sequence is
142 up. If dynamic memory is allocated for the iterator, stop() is the
155 by the iterator for output. The example module's show() function is:
171 seq_file iterator is finished by creating a seq_operations structure with
181 This structure will be needed to tie our iterator to the /proc file in
184 It's worth noting that the iterator value returned by start() and
190 iterator function. However, the seq_file code (by design) will not sleep
193 other locks while the iterator is active.
199 iterator and getting it into the user's buffer. But, for that to work, that
258 file->private_data. If you have an application where the same iterator can
261 by the iterator functions.