X-Git-Url: http://pilppa.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=include%2Flinux%2Fseq_file.h;h=8bf1e05115b42c341de6e9c1e0af615c897e656c;hb=6d66f5cd26e4c482e986130b7572f2735a0f7e8b;hp=3e3cccbb1cac355f385f474477f2222015e1e528;hpb=c4366889dda8110247be59ca41fddb82951a8c26;p=linux-2.6-omap-h63xx.git diff --git a/include/linux/seq_file.h b/include/linux/seq_file.h index 3e3cccbb1ca..8bf1e05115b 100644 --- a/include/linux/seq_file.h +++ b/include/linux/seq_file.h @@ -46,9 +46,22 @@ int seq_path(struct seq_file *, struct vfsmount *, struct dentry *, char *); int single_open(struct file *, int (*)(struct seq_file *, void *), void *); int single_release(struct inode *, struct file *); +void *__seq_open_private(struct file *, const struct seq_operations *, int); +int seq_open_private(struct file *, const struct seq_operations *, int); 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