X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=include%2Flinux%2Fseq_file.h;h=3e3cccbb1cac355f385f474477f2222015e1e528;hb=refs%2Fheads%2Fvserver;hp=28141af6a19a56acb1a577ef5da879c3e812fe58;hpb=5273a3df6485dc2ad6aa7ddd441b9a21970f003b;p=linux-2.6.git diff --git a/include/linux/seq_file.h b/include/linux/seq_file.h index 28141af6a..3e3cccbb1 100644 --- a/include/linux/seq_file.h +++ b/include/linux/seq_file.h @@ -4,7 +4,7 @@ #include #include -#include +#include struct seq_operations; struct file; @@ -18,8 +18,9 @@ struct seq_file { size_t from; size_t count; loff_t index; - struct semaphore sem; - struct seq_operations *op; + loff_t version; + struct mutex lock; + const struct seq_operations *op; void *private; }; @@ -30,7 +31,7 @@ struct seq_operations { int (*show) (struct seq_file *m, void *v); }; -int seq_open(struct file *, struct seq_operations *); +int seq_open(struct file *, const struct seq_operations *); ssize_t seq_read(struct file *, char __user *, size_t, loff_t *); loff_t seq_lseek(struct file *, loff_t, int); int seq_release(struct inode *, struct file *);