X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;ds=sidebyside;f=include%2Flinux%2Fseq_file.h;h=3e3cccbb1cac355f385f474477f2222015e1e528;hb=97bf2856c6014879bd04983a3e9dfcdac1e7fe85;hp=850a974ee505e614060bd48d2cd9ee1958405a55;hpb=76828883507a47dae78837ab5dec5a5b4513c667;p=linux-2.6.git diff --git a/include/linux/seq_file.h b/include/linux/seq_file.h index 850a974ee..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; @@ -19,8 +19,8 @@ struct seq_file { size_t count; loff_t index; loff_t version; - struct semaphore sem; - struct seq_operations *op; + struct mutex lock; + const struct seq_operations *op; void *private; }; @@ -31,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 *);