Home
last modified time | relevance | path

Searched refs:sk_lock (Results 1 – 21 of 21) sorted by relevance

/kernel/linux/linux-5.10/net/llc/
Dllc_proc.c41 spin_lock_bh(&sap->sk_lock); in llc_get_sk_idx()
52 spin_unlock_bh(&sap->sk_lock); in llc_get_sk_idx()
102 spin_unlock_bh(&sap->sk_lock); in llc_seq_next()
104 spin_lock_bh(&sap->sk_lock); in llc_seq_next()
108 spin_unlock_bh(&sap->sk_lock); in llc_seq_next()
121 spin_unlock_bh(&sap->sk_lock); in llc_seq_stop()
198 !!sk->sk_backlog.tail, !!sk->sk_lock.owned); in llc_seq_core_show()
Dllc_core.c41 spin_lock_init(&sap->sk_lock); in llc_sap_alloc()
Dllc_conn.c703 spin_lock_bh(&sap->sk_lock); in llc_sap_add_socket()
708 spin_unlock_bh(&sap->sk_lock); in llc_sap_add_socket()
723 spin_lock_bh(&sap->sk_lock); in llc_sap_remove_socket()
727 spin_unlock_bh(&sap->sk_lock); in llc_sap_remove_socket()
Dllc_sap.c399 spin_lock_bh(&sap->sk_lock); in llc_sap_mcast()
415 spin_unlock_bh(&sap->sk_lock); in llc_sap_mcast()
/kernel/linux/linux-5.10/include/net/
Dsock.h392 socket_lock_t sk_lock; member
1581 if (sk->sk_lock.owned) { in sock_release_ownership()
1582 sk->sk_lock.owned = 0; in sock_release_ownership()
1585 mutex_release(&sk->sk_lock.dep_map, _RET_IP_); in sock_release_ownership()
1598 sk->sk_lock.owned = 0; \
1599 init_waitqueue_head(&sk->sk_lock.wq); \
1600 spin_lock_init(&(sk)->sk_lock.slock); \
1601 debug_check_no_locks_freed((void *)&(sk)->sk_lock, \
1602 sizeof((sk)->sk_lock)); \
1603 lockdep_set_class_and_name(&(sk)->sk_lock.slock, \
[all …]
Dllc.h65 spinlock_t sk_lock; member
/kernel/linux/linux-5.10/net/core/
Dsock.c507 mutex_acquire(&sk->sk_lock.dep_map, 0, 1, _RET_IP_); in __sk_receive_skb()
511 mutex_release(&sk->sk_lock.dep_map, _RET_IP_); in __sk_receive_skb()
2508 __releases(&sk->sk_lock.slock) in __lock_sock()
2509 __acquires(&sk->sk_lock.slock) in __lock_sock()
2514 prepare_to_wait_exclusive(&sk->sk_lock.wq, &wait, in __lock_sock()
2516 spin_unlock_bh(&sk->sk_lock.slock); in __lock_sock()
2518 spin_lock_bh(&sk->sk_lock.slock); in __lock_sock()
2522 finish_wait(&sk->sk_lock.wq, &wait); in __lock_sock()
2526 __releases(&sk->sk_lock.slock) in __release_sock()
2527 __acquires(&sk->sk_lock.slock) in __release_sock()
[all …]
Dsock_map.c122 __acquires(&sk->sk_lock.slock) in sock_map_sk_acquire()
130 __releases(&sk->sk_lock.slock) in sock_map_sk_release()
/kernel/linux/linux-5.10/net/l2tp/
Dl2tp_ppp.c119 struct mutex sk_lock; /* Protects .sk */ member
453 mutex_lock(&ps->sk_lock); in pppol2tp_release()
455 lockdep_is_held(&ps->sk_lock)); in pppol2tp_release()
457 mutex_unlock(&ps->sk_lock); in pppol2tp_release()
550 mutex_init(&ps->sk_lock); in pppol2tp_session_init()
761 mutex_lock(&ps->sk_lock); in pppol2tp_connect()
763 lockdep_is_held(&ps->sk_lock)) || in pppol2tp_connect()
765 mutex_unlock(&ps->sk_lock); in pppol2tp_connect()
784 mutex_lock(&ps->sk_lock); in pppol2tp_connect()
787 mutex_unlock(&ps->sk_lock); in pppol2tp_connect()
[all …]
Dl2tp_core.c1517 lockdep_set_class_and_name(&sk->sk_lock.slock, &l2tp_socket_class, in l2tp_tunnel_register()
/kernel/linux/linux-5.10/net/rxrpc/
Dsendmsg.c622 __releases(&rx->sk.sk_lock.slock) in rxrpc_new_client_call_for_sendmsg()
664 __releases(&rx->sk.sk_lock.slock) in rxrpc_do_sendmsg()
Dcall_object.c275 __releases(&rx->sk.sk_lock.slock) in rxrpc_new_client_call()
/kernel/linux/linux-5.10/net/bluetooth/rfcomm/
Dsock.c73 spin_lock_bh(&sk->sk_lock.slock); in rfcomm_sk_state_change()
94 spin_unlock_bh(&sk->sk_lock.slock); in rfcomm_sk_state_change()
/kernel/linux/linux-5.10/net/ipv6/
Dicmp.c117 if (unlikely(!spin_trylock(&sk->sk_lock.slock))) { in icmpv6_xmit_lock()
129 spin_unlock(&sk->sk_lock.slock); in icmpv6_xmit_unlock()
/kernel/linux/linux-5.10/net/ipv4/
Dicmp.c214 if (unlikely(!spin_trylock(&sk->sk_lock.slock))) { in icmp_xmit_lock()
225 spin_unlock(&sk->sk_lock.slock); in icmp_xmit_unlock()
Dtcp_minisocks.c831 __releases(&((child)->sk_lock.slock)) in tcp_child_process()
Dinet_connection_sock.c913 __releases(&sk->sk_lock.slock) in inet_csk_prepare_forced_close()
/kernel/linux/linux-5.10/net/mptcp/
Dprotocol.c597 if (READ_ONCE(sk->sk_lock.owned)) in move_skbs_to_msk()
600 if (unlikely(!spin_trylock_bh(&sk->sk_lock.slock))) in move_skbs_to_msk()
604 if (!READ_ONCE(sk->sk_lock.owned)) { in move_skbs_to_msk()
618 spin_unlock_bh(&sk->sk_lock.slock); in move_skbs_to_msk()
/kernel/linux/linux-5.10/net/sctp/
Dinput.c553 __releases(&((__sk)->sk_lock.slock)) in sctp_err_finish()
/kernel/linux/linux-5.10/net/tipc/
Dsocket.c2492 if (likely(spin_trylock_bh(&sk->sk_lock.slock))) { in tipc_sk_rcv()
2494 spin_unlock_bh(&sk->sk_lock.slock); in tipc_sk_rcv()
/kernel/linux/linux-5.10/net/ceph/
Dmessenger.c472 lockdep_set_class(&sock->sk->sk_lock, &socket_class); in ceph_tcp_connect()