On Sun, 25 Feb 2007, Ahmed S. Darwish wrote: > On Sat, Feb 24, 2007 at 08:50:12AM -0500, Robert P. J. Day wrote: > > > > for those with a copy of LDD3, i'm looking at the example of using a > > seq_file interface for the book's "scull" example, and i'm a bit > > puzzled by how the iterator is being used. > > > > as i read it, the routines defined for that interface are constantly > > being *told* where the current location is -- the scull_seq_next(), > > rather than acting as a true iterator, accepts as input the position > > from which to calculate and returns the next position. > > What do you mean by "a true iterator" ?. As far as I know, those > methods (start, next, show) are never called manually. ack, you're right. while the examples i was looking at weren't being called manually, i just assumed that there were examples in which they were. my mistake. rday -- ======================================================================== Robert P. J. Day Linux Consulting, Training and Annoying Kernel Pedantry Waterloo, Ontario, CANADA http://fsdev.net/wiki/index.php?title=Main_Page ======================================================================== -- To unsubscribe from this list: send an email with "unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx Please read the FAQ at http://kernelnewbies.org/FAQ