Lines Matching refs:unx
164 spin_lock(&net->unx.table.locks[hash1]); in unix_table_double_lock()
171 spin_lock(&net->unx.table.locks[hash1]); in unix_table_double_lock()
172 spin_lock_nested(&net->unx.table.locks[hash2], SINGLE_DEPTH_NESTING); in unix_table_double_lock()
179 spin_unlock(&net->unx.table.locks[hash1]); in unix_table_double_unlock()
183 spin_unlock(&net->unx.table.locks[hash1]); in unix_table_double_unlock()
184 spin_unlock(&net->unx.table.locks[hash2]); in unix_table_double_unlock()
317 sk_add_node(sk, &net->unx.table.buckets[sk->sk_hash]); in __unix_insert_socket()
332 spin_lock(&net->unx.table.locks[sk->sk_hash]); in unix_remove_socket()
334 spin_unlock(&net->unx.table.locks[sk->sk_hash]); in unix_remove_socket()
339 spin_lock(&net->unx.table.locks[sk->sk_hash]); in unix_insert_unbound_socket()
341 spin_unlock(&net->unx.table.locks[sk->sk_hash]); in unix_insert_unbound_socket()
368 sk_for_each(s, &net->unx.table.buckets[hash]) { in __unix_find_socket_byname()
384 spin_lock(&net->unx.table.locks[hash]); in unix_find_socket_byname()
388 spin_unlock(&net->unx.table.locks[hash]); in unix_find_socket_byname()
980 sk->sk_max_ack_backlog = READ_ONCE(net->unx.sysctl_max_dgram_qlen); in unix_create1()
3222 for (sk = sk_head(&seq_file_net(seq)->unx.table.buckets[bucket]); in unix_from_bucket()
3238 spin_lock(&net->unx.table.locks[bucket]); in unix_get_first()
3244 spin_unlock(&net->unx.table.locks[bucket]); in unix_get_first()
3262 spin_unlock(&seq_file_net(seq)->unx.table.locks[bucket]); in unix_get_next()
3292 spin_unlock(&seq_file_net(seq)->unx.table.locks[sk->sk_hash]); in unix_seq_stop()
3395 spin_unlock(&seq_file_net(seq)->unx.table.locks[start_sk->sk_hash]); in bpf_iter_unix_hold_batch()
3557 net->unx.sysctl_max_dgram_qlen = 10; in unix_net_init()
3567 net->unx.table.locks = kvmalloc_array(UNIX_HASH_SIZE, in unix_net_init()
3569 if (!net->unx.table.locks) in unix_net_init()
3572 net->unx.table.buckets = kvmalloc_array(UNIX_HASH_SIZE, in unix_net_init()
3575 if (!net->unx.table.buckets) in unix_net_init()
3579 spin_lock_init(&net->unx.table.locks[i]); in unix_net_init()
3580 INIT_HLIST_HEAD(&net->unx.table.buckets[i]); in unix_net_init()
3586 kvfree(net->unx.table.locks); in unix_net_init()
3599 kvfree(net->unx.table.buckets); in unix_net_exit()
3600 kvfree(net->unx.table.locks); in unix_net_exit()