Home
last modified time | relevance | path

Searched refs:hlist (Results 1 – 18 of 18) sorted by relevance

/net/phonet/
Dsocket.c44 struct hlist_head hlist[PN_HASHSIZE]; member
53 INIT_HLIST_HEAD(pnsocks.hlist + i); in pn_sock_init()
59 return pnsocks.hlist + (obj & PN_HASHMASK); in pn_hash_list()
72 struct hlist_head *hlist = pn_hash_list(obj); in pn_find_sock_by_sa() local
75 sk_for_each_rcu(sknode, hlist) { in pn_find_sock_by_sa()
106 struct hlist_head *hlist = pnsocks.hlist; in pn_deliver_sock_broadcast() local
113 sk_for_each(sknode, hlist) { in pn_deliver_sock_broadcast()
127 hlist++; in pn_deliver_sock_broadcast()
134 struct hlist_head *hlist = pn_hash_list(pn_sk(sk)->sobject); in pn_sock_hash() local
137 sk_add_node_rcu(sk, hlist); in pn_sock_hash()
[all …]
Dpep.c625 static struct sock *pep_find_pipe(const struct hlist_head *hlist, in pep_find_pipe() argument
632 sk_for_each(sknode, hlist) { in pep_find_pipe()
673 sknode = pep_find_pipe(&pn->hlist, &dst, pipe_handle); in pep_do_rcv()
829 newsk = pep_find_pipe(&pn->hlist, &dst, pipe_handle); in pep_sock_accept()
877 sk_add_node(newsk, &pn->hlist); in pep_sock_accept()
990 INIT_HLIST_HEAD(&pn->hlist); in pep_init()
1341 if (hlist_empty(&pn->hlist)) in pep_sock_unhash()
/net/ipv4/
Draw_diag.c60 struct hlist_head *hlist; in raw_sock_get() local
69 hlist = &hashinfo->ht[slot]; in raw_sock_get()
70 sk_for_each_rcu(sk, hlist) { in raw_sock_get()
145 struct hlist_head *hlist; in raw_diag_dump() local
161 hlist = &hashinfo->ht[slot]; in raw_diag_dump()
162 sk_for_each_rcu(sk, hlist) { in raw_diag_dump()
Draw.c94 struct hlist_head *hlist; in raw_hash_sk() local
96 hlist = &h->ht[raw_hashfunc(sock_net(sk), inet_sk(sk)->inet_num)]; in raw_hash_sk()
99 sk_add_node_rcu(sk, hlist); in raw_hash_sk()
167 struct hlist_head *hlist; in raw_v4_input() local
172 hlist = &raw_v4_hashinfo.ht[hash]; in raw_v4_input()
174 sk_for_each_rcu(sk, hlist) { in raw_v4_input()
268 struct hlist_head *hlist; in raw_icmp_error() local
274 hlist = &raw_v4_hashinfo.ht[hash]; in raw_icmp_error()
277 sk_for_each_rcu(sk, hlist) { in raw_icmp_error()
954 struct hlist_head *hlist; in raw_get_first() local
[all …]
Dping.c86 struct hlist_nulls_head *hlist; in ping_get_port() local
99 hlist = ping_hashslot(&ping_table, sock_net(sk), in ping_get_port()
101 ping_portaddr_for_each_entry(sk2, node, hlist) { in ping_get_port()
117 hlist = ping_hashslot(&ping_table, sock_net(sk), ident); in ping_get_port()
118 ping_portaddr_for_each_entry(sk2, node, hlist) { in ping_get_port()
138 hlist_nulls_add_head_rcu(&sk->sk_nulls_node, hlist); in ping_get_port()
/net/sched/
Dcls_u32.c86 struct tc_u_hnode __rcu *hlist; member
258 for (ht = rtnl_dereference(tp_c->hlist); in u32_lookup_ht()
380 RCU_INIT_POINTER(root_ht->next, tp_c->hlist); in u32_init()
381 rcu_assign_pointer(tp_c->hlist, root_ht); in u32_init()
606 hn = &tp_c->hlist; in u32_destroy_hnode()
639 while ((ht = rtnl_dereference(tp_c->hlist)) != NULL) { in u32_destroy()
641 RCU_INIT_POINTER(tp_c->hlist, ht->next); in u32_destroy()
995 RCU_INIT_POINTER(ht->next, tp_c->hlist); in u32_change()
996 rcu_assign_pointer(tp_c->hlist, ht); in u32_change()
1198 for (ht = rtnl_dereference(tp_c->hlist); in u32_walk()
[all …]
/net/mctp/
Droute.c110 hlist_for_each_entry(key, &net->mctp.keys, hlist) { in mctp_lookup_key()
187 hlist_for_each_entry(tmp, &net->mctp.keys, hlist) { in mctp_key_add()
204 hlist_add_head(&key->hlist, &net->mctp.keys); in mctp_key_add()
239 if (!hlist_unhashed(&key->hlist)) { in __mctp_key_done_in()
240 hlist_del_init(&key->hlist); in __mctp_key_done_in()
594 hlist_add_head_rcu(&key->hlist, &mns->keys); in mctp_reserve_tag()
629 hlist_for_each_entry(tmp, &mns->keys, hlist) { in mctp_alloc_local_tag()
687 hlist_for_each_entry(tmp, &mns->keys, hlist) { in mctp_lookup_prealloc_tag()
Daf_mctp.c298 if (!hlist_unhashed(&key->hlist)) { in __mctp_key_remove()
299 hlist_del_init(&key->hlist); in __mctp_key_remove()
/net/l2tp/
Dl2tp_core.c252 hlist_for_each_entry_rcu(session, session_list, hlist) in l2tp_tunnel_get_session()
294 hlist_for_each_entry_rcu(session, &tunnel->session_hlist[hash], hlist) { in l2tp_session_get_nth()
354 hlist_for_each_entry(session_walk, head, hlist) in l2tp_session_register()
385 hlist_add_head_rcu(&session->hlist, head); in l2tp_session_register()
1174 hlist_del_init_rcu(&session->hlist); in l2tp_session_unhash()
1201 hlist_for_each_entry_rcu(session, &tunnel->session_hlist[hash], hlist) { in l2tp_tunnel_closeall()
1202 hlist_del_init_rcu(&session->hlist); in l2tp_tunnel_closeall()
1609 INIT_HLIST_NODE(&session->hlist); in l2tp_session_create()
Dl2tp_core.h91 struct hlist_node hlist; /* hash list node */ member
Dl2tp_debugfs.c130 hlist_for_each_entry_rcu(session, &tunnel->session_hlist[hash], hlist) { in l2tp_dfs_seq_tunnel_show()
/net/netfilter/
Dnfnetlink_log.c61 struct hlist_node hlist; /* global list of instances */ member
112 hlist_for_each_entry_rcu(inst, head, hlist) { in __instance_lookup()
184 INIT_HLIST_NODE(&inst->hlist); in instance_create()
202 hlist_add_head_rcu(&inst->hlist, in instance_create()
222 hlist_del_rcu(&inst->hlist); in __instance_destroy()
836 hlist_for_each_entry_safe(inst, t2, head, hlist) { in nfulnl_rcv_nl_event()
Dnfnetlink_queue.c58 struct hlist_node hlist; /* global list of queues */ member
108 hlist_for_each_entry_rcu(inst, head, hlist) { in instance_lookup()
148 hlist_add_head_rcu(&inst->hlist, &q->instance_table[h]); in instance_create()
178 hlist_del_rcu(&inst->hlist); in __instance_destroy()
945 hlist_for_each_entry_rcu(inst, head, hlist) in nfqnl_dev_drop()
987 hlist_for_each_entry_rcu(inst, head, hlist) in nfqnl_nf_hook_drop()
1009 hlist_for_each_entry_safe(inst, t2, head, hlist) { in nfqnl_rcv_nl_event()
/net/ipv6/
Draw.c146 struct hlist_head *hlist; in ipv6_raw_deliver() local
155 hlist = &raw_v6_hashinfo.ht[hash]; in ipv6_raw_deliver()
157 sk_for_each_rcu(sk, hlist) { in ipv6_raw_deliver()
333 struct hlist_head *hlist; in raw6_icmp_error() local
338 hlist = &raw_v6_hashinfo.ht[hash]; in raw6_icmp_error()
340 sk_for_each_rcu(sk, hlist) { in raw6_icmp_error()
Droute.c1464 hlist_del_rcu(&rt6_ex->hlist); in rt6_remove_exception()
1481 hlist_for_each_entry(rt6_ex, &bucket->chain, hlist) { in rt6_exception_remove_oldest()
1530 hlist_for_each_entry(rt6_ex, &(*bucket)->chain, hlist) { in __rt6_find_exception_spinlock()
1565 hlist_for_each_entry_rcu(rt6_ex, &(*bucket)->chain, hlist) { in __rt6_find_exception_rcu()
1714 hlist_add_head_rcu(&rt6_ex->hlist, &bucket->chain); in rt6_insert_exception()
1755 hlist_for_each_entry_safe(rt6_ex, tmp, &bucket->chain, hlist) { in fib6_nh_flush_exceptions()
2025 hlist_for_each_entry(rt6_ex, &bucket->chain, hlist) { in rt6_exceptions_update_pmtu()
2058 &bucket->chain, hlist) { in fib6_nh_exceptions_clean_tohost()
2134 &bucket->chain, hlist) { in fib6_nh_age_exceptions()
5826 hlist_for_each_entry(rt6_ex, &bucket->chain, hlist) { in rt6_nh_dump_exceptions()
/net/core/
Ddev.h55 struct hlist_node hlist; member
Ddev.c263 INIT_HLIST_NODE(&name_node->hlist); in netdev_name_node_alloc()
289 hlist_add_head_rcu(&name_node->hlist, in netdev_name_node_add()
295 hlist_del_rcu(&name_node->hlist); in netdev_name_node_del()
304 hlist_for_each_entry(name_node, head, hlist) in netdev_name_node_lookup()
316 hlist_for_each_entry_rcu(name_node, head, hlist) in netdev_name_node_lookup_rcu()
/net/8021q/
Dvlan.h24 struct hlist_node hlist; /* linked list */ member