1
2 #include <linux/fs.h>
3
4 struct file;
5
6 struct seq_file {
7 };
8
9 struct seq_operations {
10 void * (*start) (struct seq_file *m, loff_t *pos);
11 void (*stop) (struct seq_file *m, void *v);
12 void * (*next) (struct seq_file *m, void *v, loff_t *pos);
13 int (*show) (struct seq_file *m, void *v);
14 };
15
16 #define seq_printf(a, b, c...) printf(b , ## c)
seq_open(struct file * f,const struct seq_operations * o)17 static inline int seq_open(struct file *f, const struct seq_operations *o) { return -1; }
18
seq_read(struct file * a,char * b,size_t c,loff_t * d)19 static inline ssize_t seq_read(struct file *a, char *b, size_t c, loff_t *d) { return 0; }
seq_write(struct file * a,const char * b,size_t c,loff_t * d)20 static inline ssize_t seq_write(struct file *a, const char *b, size_t c, loff_t *d) { return 0; }
seq_release(struct inode * a,struct file * b)21 static inline int seq_release(struct inode *a, struct file *b) { return 0; }
22
23