diff options
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/kernfs.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/include/linux/kernfs.h b/include/linux/kernfs.h index d0912cf02087..ba993ebcd81e 100644 --- a/include/linux/kernfs.h +++ b/include/linux/kernfs.h | |||
| @@ -37,8 +37,9 @@ struct kernfs_ops { | |||
| 37 | /* | 37 | /* |
| 38 | * Read is handled by either seq_file or raw_read(). | 38 | * Read is handled by either seq_file or raw_read(). |
| 39 | * | 39 | * |
| 40 | * If seq_show() is present, seq_file path is active. The behavior | 40 | * If seq_show() is present, seq_file path is active. Other seq |
| 41 | * is equivalent to single_open(). @sf->private points to the | 41 | * operations are optional and if not implemented, the behavior is |
| 42 | * equivalent to single_open(). @sf->private points to the | ||
| 42 | * associated sysfs_open_file. | 43 | * associated sysfs_open_file. |
| 43 | * | 44 | * |
| 44 | * read() is bounced through kernel buffer and a read larger than | 45 | * read() is bounced through kernel buffer and a read larger than |
| @@ -46,6 +47,10 @@ struct kernfs_ops { | |||
| 46 | */ | 47 | */ |
| 47 | int (*seq_show)(struct seq_file *sf, void *v); | 48 | int (*seq_show)(struct seq_file *sf, void *v); |
| 48 | 49 | ||
| 50 | void *(*seq_start)(struct seq_file *sf, loff_t *ppos); | ||
| 51 | void *(*seq_next)(struct seq_file *sf, void *v, loff_t *ppos); | ||
| 52 | void (*seq_stop)(struct seq_file *sf, void *v); | ||
| 53 | |||
| 49 | ssize_t (*read)(struct sysfs_open_file *of, char *buf, size_t bytes, | 54 | ssize_t (*read)(struct sysfs_open_file *of, char *buf, size_t bytes, |
| 50 | loff_t off); | 55 | loff_t off); |
| 51 | 56 | ||
