Lines Matching refs:seq

59 static int sctp_snmp_seq_show(struct seq_file *seq, void *v)  in sctp_snmp_seq_show()  argument
62 struct net *net = seq->private; in sctp_snmp_seq_show()
70 seq_printf(seq, "%-32s\t%ld\n", sctp_snmp_list[i].name, in sctp_snmp_seq_show()
77 static void sctp_seq_dump_local_addrs(struct seq_file *seq, struct sctp_ep_common *epb) in sctp_seq_dump_local_addrs() argument
105 seq_printf(seq, "*"); in sctp_seq_dump_local_addrs()
107 af->seq_dump_addr(seq, addr); in sctp_seq_dump_local_addrs()
113 static void sctp_seq_dump_remote_addrs(struct seq_file *seq, struct sctp_association *assoc) in sctp_seq_dump_remote_addrs() argument
126 seq_printf(seq, "*"); in sctp_seq_dump_remote_addrs()
128 af->seq_dump_addr(seq, addr); in sctp_seq_dump_remote_addrs()
132 static void *sctp_eps_seq_start(struct seq_file *seq, loff_t *pos) in sctp_eps_seq_start() argument
141 seq_printf(seq, " ENDPT SOCK STY SST HBKT LPORT UID INODE LADDRS\n"); in sctp_eps_seq_start()
146 static void sctp_eps_seq_stop(struct seq_file *seq, void *v) in sctp_eps_seq_stop() argument
151 static void *sctp_eps_seq_next(struct seq_file *seq, void *v, loff_t *pos) in sctp_eps_seq_next() argument
161 static int sctp_eps_seq_show(struct seq_file *seq, void *v) in sctp_eps_seq_show() argument
175 if (!net_eq(sock_net(sk), seq_file_net(seq))) in sctp_eps_seq_show()
177 seq_printf(seq, "%8pK %8pK %-3d %-3d %-4d %-5d %5u %5lu ", ep, sk, in sctp_eps_seq_show()
180 from_kuid_munged(seq_user_ns(seq), sock_i_uid(sk)), in sctp_eps_seq_show()
183 sctp_seq_dump_local_addrs(seq, &ep->base); in sctp_eps_seq_show()
184 seq_printf(seq, "\n"); in sctp_eps_seq_show()
203 static void *sctp_transport_seq_start(struct seq_file *seq, loff_t *pos) in sctp_transport_seq_start() argument
205 struct sctp_ht_iter *iter = seq->private; in sctp_transport_seq_start()
209 return sctp_transport_get_idx(seq_file_net(seq), &iter->hti, *pos); in sctp_transport_seq_start()
212 static void sctp_transport_seq_stop(struct seq_file *seq, void *v) in sctp_transport_seq_stop() argument
214 struct sctp_ht_iter *iter = seq->private; in sctp_transport_seq_stop()
225 static void *sctp_transport_seq_next(struct seq_file *seq, void *v, loff_t *pos) in sctp_transport_seq_next() argument
227 struct sctp_ht_iter *iter = seq->private; in sctp_transport_seq_next()
237 return sctp_transport_get_next(seq_file_net(seq), &iter->hti); in sctp_transport_seq_next()
241 static int sctp_assocs_seq_show(struct seq_file *seq, void *v) in sctp_assocs_seq_show() argument
249 seq_printf(seq, " ASSOC SOCK STY SST ST HBKT " in sctp_assocs_seq_show()
262 seq_printf(seq, in sctp_assocs_seq_show()
270 from_kuid_munged(seq_user_ns(seq), sock_i_uid(sk)), in sctp_assocs_seq_show()
274 seq_printf(seq, " "); in sctp_assocs_seq_show()
275 sctp_seq_dump_local_addrs(seq, epb); in sctp_assocs_seq_show()
276 seq_printf(seq, "<-> "); in sctp_assocs_seq_show()
277 sctp_seq_dump_remote_addrs(seq, assoc); in sctp_assocs_seq_show()
278 seq_printf(seq, "\t%8lu %5d %5d %4d %4d %4d %8d " in sctp_assocs_seq_show()
288 seq_printf(seq, "\n"); in sctp_assocs_seq_show()
300 static int sctp_remaddr_seq_show(struct seq_file *seq, void *v) in sctp_remaddr_seq_show() argument
306 seq_printf(seq, "ADDR ASSOC_ID HB_ACT RTO MAX_PATH_RTX " in sctp_remaddr_seq_show()
319 tsp->af_specific->seq_dump_addr(seq, &tsp->ipaddr); in sctp_remaddr_seq_show()
320 seq_printf(seq, " "); in sctp_remaddr_seq_show()
324 seq_printf(seq, "%d ", tsp->asoc->assoc_id); in sctp_remaddr_seq_show()
330 seq_printf(seq, "%d ", timer_pending(&tsp->hb_timer)); in sctp_remaddr_seq_show()
335 seq_printf(seq, "%lu ", tsp->rto); in sctp_remaddr_seq_show()
340 seq_printf(seq, "%d ", tsp->pathmaxrxt); in sctp_remaddr_seq_show()
347 seq_puts(seq, "0 "); in sctp_remaddr_seq_show()
354 seq_puts(seq, "0 "); in sctp_remaddr_seq_show()
360 seq_printf(seq, "%d", tsp->state); in sctp_remaddr_seq_show()
362 seq_printf(seq, "\n"); in sctp_remaddr_seq_show()