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>
This commit is contained in:
@@ -10,6 +10,7 @@
|
||||
#include <linux/tty_ldisc.h>
|
||||
#include <linux/mutex.h>
|
||||
#include <linux/tty_flags.h>
|
||||
#include <linux/seq_file.h>
|
||||
#include <uapi/linux/tty.h>
|
||||
#include <linux/rwsem.h>
|
||||
#include <linux/llist.h>
|
||||
@@ -535,7 +536,7 @@ extern void tty_ldisc_deref(struct tty_ldisc *);
|
||||
extern struct tty_ldisc *tty_ldisc_ref_wait(struct tty_struct *);
|
||||
extern void tty_ldisc_hangup(struct tty_struct *tty, bool reset);
|
||||
extern int tty_ldisc_reinit(struct tty_struct *tty, int disc);
|
||||
extern const struct file_operations tty_ldiscs_proc_fops;
|
||||
extern const struct seq_operations tty_ldiscs_seq_ops;
|
||||
|
||||
extern void tty_wakeup(struct tty_struct *tty);
|
||||
extern void tty_ldisc_flush(struct tty_struct *tty);
|
||||
|
||||
Reference in New Issue
Block a user