Lines Matching +full:com +full:- +full:seq
2 * proc_llc.c - proc interface for LLC
5 * 2002-2003 by Arnaldo Carvalho de Melo <acme@conectiva.com.br>
29 static void llc_ui_format_mac(struct seq_file *seq, const u8 *addr) in llc_ui_format_mac() argument
31 seq_printf(seq, "%pM", addr); in llc_ui_format_mac()
41 spin_lock_bh(&sap->sk_lock); in llc_get_sk_idx()
43 struct hlist_nulls_head *head = &sap->sk_laddr_hash[i]; in llc_get_sk_idx()
49 --pos; in llc_get_sk_idx()
52 spin_unlock_bh(&sap->sk_lock); in llc_get_sk_idx()
59 static void *llc_seq_start(struct seq_file *seq, loff_t *pos) __acquires(RCU) in llc_seq_start() argument
64 return l ? llc_get_sk_idx(--l) : SEQ_START_TOKEN; in llc_seq_start()
73 sk_nulls_for_each(sk, node, &sap->sk_laddr_hash[bucket]) in laddr_hash_next()
80 static void *llc_seq_next(struct seq_file *seq, void *v, loff_t *pos) in llc_seq_next() argument
98 sap = llc->sap; in llc_seq_next()
99 sk = laddr_hash_next(sap, llc_sk_laddr_hashfn(sap, &llc->laddr)); in llc_seq_next()
102 spin_unlock_bh(&sap->sk_lock); in llc_seq_next()
104 spin_lock_bh(&sap->sk_lock); in llc_seq_next()
105 sk = laddr_hash_next(sap, -1); in llc_seq_next()
108 spin_unlock_bh(&sap->sk_lock); in llc_seq_next()
114 static void llc_seq_stop(struct seq_file *seq, void *v) in llc_seq_stop() argument
119 struct llc_sap *sap = llc->sap; in llc_seq_stop()
121 spin_unlock_bh(&sap->sk_lock); in llc_seq_stop()
126 static int llc_seq_socket_show(struct seq_file *seq, void *v) in llc_seq_socket_show() argument
132 seq_puts(seq, "SKt Mc local_mac_sap remote_mac_sap " in llc_seq_socket_show()
140 seq_printf(seq, "%2X %2X ", sk->sk_type, 0); in llc_seq_socket_show()
142 if (llc->dev) in llc_seq_socket_show()
143 llc_ui_format_mac(seq, llc->dev->dev_addr); in llc_seq_socket_show()
146 llc_ui_format_mac(seq, addr); in llc_seq_socket_show()
148 seq_printf(seq, "@%02X ", llc->sap->laddr.lsap); in llc_seq_socket_show()
149 llc_ui_format_mac(seq, llc->daddr.mac); in llc_seq_socket_show()
150 seq_printf(seq, "@%02X %8d %8d %2d %3u %4d\n", llc->daddr.lsap, in llc_seq_socket_show()
152 sk_rmem_alloc_get(sk) - llc->copied_seq, in llc_seq_socket_show()
153 sk->sk_state, in llc_seq_socket_show()
154 from_kuid_munged(seq_user_ns(seq), sock_i_uid(sk)), in llc_seq_socket_show()
155 llc->link); in llc_seq_socket_show()
175 static int llc_seq_core_show(struct seq_file *seq, void *v) in llc_seq_core_show() argument
181 seq_puts(seq, "Connection list:\n" in llc_seq_core_show()
189 seq_printf(seq, " %02X %-10s %3d %3d %3d %2d %2d %2d %2d %2d %2d " in llc_seq_core_show()
191 llc->daddr.lsap, llc_conn_state_names[llc->state], in llc_seq_core_show()
192 llc->retry_count, llc->k, llc->rw, llc->p_flag, llc->f_flag, in llc_seq_core_show()
193 llc->s_flag, llc->data_flag, llc->remote_busy_flag, in llc_seq_core_show()
194 llc->cause_flag, timer_pending(&llc->ack_timer.timer), in llc_seq_core_show()
195 timer_pending(&llc->pf_cycle_timer.timer), in llc_seq_core_show()
196 timer_pending(&llc->rej_sent_timer.timer), in llc_seq_core_show()
197 timer_pending(&llc->busy_state_timer.timer), in llc_seq_core_show()
198 !!sk->sk_backlog.tail, sock_owned_by_user_nocheck(sk)); in llc_seq_core_show()
221 int rc = -ENOMEM; in llc_proc_init()