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:
@@ -15,6 +15,7 @@
|
||||
#include <linux/refcount.h>
|
||||
#include <net/neighbour.h>
|
||||
#include <net/sock.h>
|
||||
#include <linux/seq_file.h>
|
||||
|
||||
#define AX25_T1CLAMPLO 1
|
||||
#define AX25_T1CLAMPHI (30 * HZ)
|
||||
@@ -399,7 +400,7 @@ int ax25_check_iframes_acked(ax25_cb *, unsigned short);
|
||||
/* ax25_route.c */
|
||||
void ax25_rt_device_down(struct net_device *);
|
||||
int ax25_rt_ioctl(unsigned int, void __user *);
|
||||
extern const struct file_operations ax25_route_fops;
|
||||
extern const struct seq_operations ax25_rt_seqops;
|
||||
ax25_route *ax25_get_route(ax25_address *addr, struct net_device *dev);
|
||||
int ax25_rt_autobind(ax25_cb *, ax25_address *);
|
||||
struct sk_buff *ax25_rt_build_path(struct sk_buff *, ax25_address *,
|
||||
@@ -455,7 +456,7 @@ unsigned long ax25_display_timer(struct timer_list *);
|
||||
extern int ax25_uid_policy;
|
||||
ax25_uid_assoc *ax25_findbyuid(kuid_t);
|
||||
int __must_check ax25_uid_ioctl(int, struct sockaddr_ax25 *);
|
||||
extern const struct file_operations ax25_uid_fops;
|
||||
extern const struct seq_operations ax25_uid_seqops;
|
||||
void ax25_uid_free(void);
|
||||
|
||||
/* sysctl_net_ax25.c */
|
||||
|
Reference in New Issue
Block a user