X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=include%2Flinux%2Fseq_file.h;h=83783ab0f5524d7ad5e4e3092aa1790cdec527c9;hb=7616ee95f27a04fd5a6434e9ef4a82cec4b2807c;hp=3e3cccbb1cac355f385f474477f2222015e1e528;hpb=0a01707b289853f56d1c000057b27e243c039722;p=linux-2.6 diff --git a/include/linux/seq_file.h b/include/linux/seq_file.h index 3e3cccbb1c..83783ab0f5 100644 --- a/include/linux/seq_file.h +++ b/include/linux/seq_file.h @@ -50,5 +50,16 @@ int seq_release_private(struct inode *, struct file *); #define SEQ_START_TOKEN ((void *)1) +/* + * Helpers for iteration over list_head-s in seq_files + */ + +extern struct list_head *seq_list_start(struct list_head *head, + loff_t pos); +extern struct list_head *seq_list_start_head(struct list_head *head, + loff_t pos); +extern struct list_head *seq_list_next(void *v, struct list_head *head, + loff_t *ppos); + #endif #endif