summaryrefslogtreecommitdiffstats
path: root/include/net/ping.h
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2018-06-04 13:00:01 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2018-06-04 13:00:01 -0400
commitcf626b0da78df6669c6b5f51ddd9a70a0702e579 (patch)
tree45d29a4cb7574aed7f140814ed22088ded21c291 /include/net/ping.h
parent9c50eafc32ddbd166c8a2bbaecd4ad201c452b14 (diff)
parent5ef03dbd91855544cd4c7c1910c3ef5226ee87e8 (diff)
Merge branch 'hch.procfs' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
Pull procfs updates from Al Viro: "Christoph's proc_create_... cleanups series" * 'hch.procfs' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs: (44 commits) xfs, proc: hide unused xfs procfs helpers isdn/gigaset: add back gigaset_procinfo assignment proc: update SIZEOF_PDE_INLINE_NAME for the new pde fields tty: replace ->proc_fops with ->proc_show ide: replace ->proc_fops with ->proc_show ide: remove ide_driver_proc_write isdn: replace ->proc_fops with ->proc_show atm: switch to proc_create_seq_private atm: simplify procfs code bluetooth: switch to proc_create_seq_data netfilter/x_tables: switch to proc_create_seq_private netfilter/xt_hashlimit: switch to proc_create_{seq,single}_data neigh: switch to proc_create_seq_data hostap: switch to proc_create_{seq,single}_data bonding: switch to proc_create_seq_data rtc/proc: switch to proc_create_single_data drbd: switch to proc_create_single resource: switch to proc_create_seq_data staging/rtl8192u: simplify procfs code jfs: simplify procfs code ...
Diffstat (limited to 'include/net/ping.h')
-rw-r--r--include/net/ping.h11
1 files changed, 0 insertions, 11 deletions
diff --git a/include/net/ping.h b/include/net/ping.h
index 4cd90d6b5c25..fd080e043a6e 100644
--- a/include/net/ping.h
+++ b/include/net/ping.h
@@ -83,20 +83,9 @@ int ping_queue_rcv_skb(struct sock *sk, struct sk_buff *skb);
83bool ping_rcv(struct sk_buff *skb); 83bool ping_rcv(struct sk_buff *skb);
84 84
85#ifdef CONFIG_PROC_FS 85#ifdef CONFIG_PROC_FS
86struct ping_seq_afinfo {
87 char *name;
88 sa_family_t family;
89 const struct file_operations *seq_fops;
90 const struct seq_operations seq_ops;
91};
92
93extern const struct file_operations ping_seq_fops;
94
95void *ping_seq_start(struct seq_file *seq, loff_t *pos, sa_family_t family); 86void *ping_seq_start(struct seq_file *seq, loff_t *pos, sa_family_t family);
96void *ping_seq_next(struct seq_file *seq, void *v, loff_t *pos); 87void *ping_seq_next(struct seq_file *seq, void *v, loff_t *pos);
97void ping_seq_stop(struct seq_file *seq, void *v); 88void ping_seq_stop(struct seq_file *seq, void *v);
98int ping_proc_register(struct net *net, struct ping_seq_afinfo *afinfo);
99void ping_proc_unregister(struct net *net, struct ping_seq_afinfo *afinfo);
100 89
101int __init ping_proc_init(void); 90int __init ping_proc_init(void);
102void ping_proc_exit(void); 91void ping_proc_exit(void);