diff options
| author | Christoph Hellwig <hch@lst.de> | 2018-04-13 19:44:18 +0200 |
|---|---|---|
| committer | Christoph Hellwig <hch@lst.de> | 2018-05-16 07:23:35 +0200 |
| commit | fddda2b7b521185f3aa018f9559eb33b0aee53a9 (patch) | |
| tree | ece18b3d82822f8eaefd8b0afa2f93307e83b253 /fs/proc/internal.h | |
| parent | proc: add a proc_create_reg helper (diff) | |
| download | linux-fddda2b7b521185f3aa018f9559eb33b0aee53a9.tar.gz linux-fddda2b7b521185f3aa018f9559eb33b0aee53a9.zip | |
proc: introduce proc_create_seq{,_data}
Variants of proc_create{,_data} that directly take a struct seq_operations
argument and drastically reduces the boilerplate code in the callers.
All trivial callers converted over.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'fs/proc/internal.h')
| -rw-r--r-- | fs/proc/internal.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/proc/internal.h b/fs/proc/internal.h index dd1e11400b97..4fb01c5f9c1a 100644 --- a/fs/proc/internal.h +++ b/fs/proc/internal.h @@ -44,6 +44,7 @@ struct proc_dir_entry { struct completion *pde_unload_completion; const struct inode_operations *proc_iops; const struct file_operations *proc_fops; + const struct seq_operations *seq_ops; void *data; unsigned int low_ino; nlink_t nlink; |
