proc: introduce proc_create_seq_private
Variant of proc_create_data that directly take a struct seq_operations argument + a private state size and drastically reduces the boilerplate code in the callers. All trivial callers converted over. Signed-off-by: Christoph Hellwig <hch@lst.de>
This commit is contained in:
@@ -46,6 +46,7 @@ struct proc_dir_entry {
|
||||
const struct file_operations *proc_fops;
|
||||
const struct seq_operations *seq_ops;
|
||||
void *data;
|
||||
unsigned int state_size;
|
||||
unsigned int low_ino;
|
||||
nlink_t nlink;
|
||||
kuid_t uid;
|
||||
|
Reference in New Issue
Block a user