• Home
  • Raw
  • Download

Lines Matching refs:seq

74 static int sctp_snmp_seq_show(struct seq_file *seq, void *v)  in sctp_snmp_seq_show()  argument
76 struct net *net = seq->private; in sctp_snmp_seq_show()
80 seq_printf(seq, "%-32s\t%ld\n", sctp_snmp_list[i].name, in sctp_snmp_seq_show()
121 static void sctp_seq_dump_local_addrs(struct seq_file *seq, struct sctp_ep_common *epb) in sctp_seq_dump_local_addrs() argument
149 seq_printf(seq, "*"); in sctp_seq_dump_local_addrs()
151 af->seq_dump_addr(seq, addr); in sctp_seq_dump_local_addrs()
157 static void sctp_seq_dump_remote_addrs(struct seq_file *seq, struct sctp_association *assoc) in sctp_seq_dump_remote_addrs() argument
173 seq_printf(seq, "*"); in sctp_seq_dump_remote_addrs()
175 af->seq_dump_addr(seq, addr); in sctp_seq_dump_remote_addrs()
180 static void *sctp_eps_seq_start(struct seq_file *seq, loff_t *pos) in sctp_eps_seq_start() argument
189 seq_printf(seq, " ENDPT SOCK STY SST HBKT LPORT UID INODE LADDRS\n"); in sctp_eps_seq_start()
194 static void sctp_eps_seq_stop(struct seq_file *seq, void *v) in sctp_eps_seq_stop() argument
199 static void *sctp_eps_seq_next(struct seq_file *seq, void *v, loff_t *pos) in sctp_eps_seq_next() argument
209 static int sctp_eps_seq_show(struct seq_file *seq, void *v) in sctp_eps_seq_show() argument
226 if (!net_eq(sock_net(sk), seq_file_net(seq))) in sctp_eps_seq_show()
228 seq_printf(seq, "%8pK %8pK %-3d %-3d %-4d %-5d %5u %5lu ", ep, sk, in sctp_eps_seq_show()
231 from_kuid_munged(seq_user_ns(seq), sock_i_uid(sk)), in sctp_eps_seq_show()
234 sctp_seq_dump_local_addrs(seq, epb); in sctp_eps_seq_show()
235 seq_printf(seq, "\n"); in sctp_eps_seq_show()
285 static void *sctp_assocs_seq_start(struct seq_file *seq, loff_t *pos) in sctp_assocs_seq_start() argument
294 seq_printf(seq, " ASSOC SOCK STY SST ST HBKT " in sctp_assocs_seq_start()
303 static void sctp_assocs_seq_stop(struct seq_file *seq, void *v) in sctp_assocs_seq_stop() argument
308 static void *sctp_assocs_seq_next(struct seq_file *seq, void *v, loff_t *pos) in sctp_assocs_seq_next() argument
317 static int sctp_assocs_seq_show(struct seq_file *seq, void *v) in sctp_assocs_seq_show() argument
334 if (!net_eq(sock_net(sk), seq_file_net(seq))) in sctp_assocs_seq_show()
336 seq_printf(seq, in sctp_assocs_seq_show()
344 from_kuid_munged(seq_user_ns(seq), sock_i_uid(sk)), in sctp_assocs_seq_show()
348 seq_printf(seq, " "); in sctp_assocs_seq_show()
349 sctp_seq_dump_local_addrs(seq, epb); in sctp_assocs_seq_show()
350 seq_printf(seq, "<-> "); in sctp_assocs_seq_show()
351 sctp_seq_dump_remote_addrs(seq, assoc); in sctp_assocs_seq_show()
352 seq_printf(seq, "\t%8lu %5d %5d %4d %4d %4d %8d " in sctp_assocs_seq_show()
362 seq_printf(seq, "\n"); in sctp_assocs_seq_show()
410 static void *sctp_remaddr_seq_start(struct seq_file *seq, loff_t *pos) in sctp_remaddr_seq_start() argument
419 seq_printf(seq, "ADDR ASSOC_ID HB_ACT RTO MAX_PATH_RTX " in sctp_remaddr_seq_start()
425 static void *sctp_remaddr_seq_next(struct seq_file *seq, void *v, loff_t *pos) in sctp_remaddr_seq_next() argument
433 static void sctp_remaddr_seq_stop(struct seq_file *seq, void *v) in sctp_remaddr_seq_stop() argument
437 static int sctp_remaddr_seq_show(struct seq_file *seq, void *v) in sctp_remaddr_seq_show() argument
453 if (!net_eq(sock_net(epb->sk), seq_file_net(seq))) in sctp_remaddr_seq_show()
464 tsp->af_specific->seq_dump_addr(seq, &tsp->ipaddr); in sctp_remaddr_seq_show()
465 seq_printf(seq, " "); in sctp_remaddr_seq_show()
470 seq_printf(seq, "%d ", tsp->asoc->assoc_id); in sctp_remaddr_seq_show()
476 seq_printf(seq, "%d ", timer_pending(&tsp->hb_timer)); in sctp_remaddr_seq_show()
481 seq_printf(seq, "%lu ", tsp->rto); in sctp_remaddr_seq_show()
486 seq_printf(seq, "%d ", tsp->pathmaxrxt); in sctp_remaddr_seq_show()
493 seq_printf(seq, "0 "); in sctp_remaddr_seq_show()
500 seq_printf(seq, "0"); in sctp_remaddr_seq_show()
502 seq_printf(seq, "\n"); in sctp_remaddr_seq_show()