summaryrefslogtreecommitdiffstats
path: root/net/rxrpc/proc.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/rxrpc/proc.c')
-rw-r--r--net/rxrpc/proc.c31
1 files changed, 2 insertions, 29 deletions
diff --git a/net/rxrpc/proc.c b/net/rxrpc/proc.c
index 7e45db058823..d9fca8c4bcdc 100644
--- a/net/rxrpc/proc.c
+++ b/net/rxrpc/proc.c
@@ -115,26 +115,13 @@ static int rxrpc_call_seq_show(struct seq_file *seq, void *v)
115 return 0; 115 return 0;
116} 116}
117 117
118static const struct seq_operations rxrpc_call_seq_ops = { 118const struct seq_operations rxrpc_call_seq_ops = {
119 .start = rxrpc_call_seq_start, 119 .start = rxrpc_call_seq_start,
120 .next = rxrpc_call_seq_next, 120 .next = rxrpc_call_seq_next,
121 .stop = rxrpc_call_seq_stop, 121 .stop = rxrpc_call_seq_stop,
122 .show = rxrpc_call_seq_show, 122 .show = rxrpc_call_seq_show,
123}; 123};
124 124
125static int rxrpc_call_seq_open(struct inode *inode, struct file *file)
126{
127 return seq_open_net(inode, file, &rxrpc_call_seq_ops,
128 sizeof(struct seq_net_private));
129}
130
131const struct file_operations rxrpc_call_seq_fops = {
132 .open = rxrpc_call_seq_open,
133 .read = seq_read,
134 .llseek = seq_lseek,
135 .release = seq_release,
136};
137
138/* 125/*
139 * generate a list of extant virtual connections in /proc/net/rxrpc_conns 126 * generate a list of extant virtual connections in /proc/net/rxrpc_conns
140 */ 127 */
@@ -207,23 +194,9 @@ print:
207 return 0; 194 return 0;
208} 195}
209 196
210static const struct seq_operations rxrpc_connection_seq_ops = { 197const struct seq_operations rxrpc_connection_seq_ops = {
211 .start = rxrpc_connection_seq_start, 198 .start = rxrpc_connection_seq_start,
212 .next = rxrpc_connection_seq_next, 199 .next = rxrpc_connection_seq_next,
213 .stop = rxrpc_connection_seq_stop, 200 .stop = rxrpc_connection_seq_stop,
214 .show = rxrpc_connection_seq_show, 201 .show = rxrpc_connection_seq_show,
215}; 202};
216
217
218static int rxrpc_connection_seq_open(struct inode *inode, struct file *file)
219{
220 return seq_open_net(inode, file, &rxrpc_connection_seq_ops,
221 sizeof(struct seq_net_private));
222}
223
224const struct file_operations rxrpc_connection_seq_fops = {
225 .open = rxrpc_connection_seq_open,
226 .read = seq_read,
227 .llseek = seq_lseek,
228 .release = seq_release,
229};