Home
last modified time | relevance | path

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

/linux-6.6.21/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()
Dllc_core.c41 spin_lock_init(&sap->sk_lock); in llc_sap_alloc()
Dllc_sap.c403 spin_lock_bh(&sap->sk_lock); in llc_sap_mcast()
419 spin_unlock_bh(&sap->sk_lock); in llc_sap_mcast()
Dllc_conn.c715 spin_lock_bh(&sap->sk_lock); in llc_sap_add_socket()
720 spin_unlock_bh(&sap->sk_lock); in llc_sap_add_socket()
735 spin_lock_bh(&sap->sk_lock); in llc_sap_remove_socket()
739 spin_unlock_bh(&sap->sk_lock); in llc_sap_remove_socket()
/linux-6.6.21/include/net/
Dsock.h402 socket_lock_t sk_lock; member
1700 sk->sk_lock.owned = 0; \
1701 init_waitqueue_head(&sk->sk_lock.wq); \
1702 spin_lock_init(&(sk)->sk_lock.slock); \
1703 debug_check_no_locks_freed((void *)&(sk)->sk_lock, \
1704 sizeof((sk)->sk_lock)); \
1705 lockdep_set_class_and_name(&(sk)->sk_lock.slock, \
1707 lockdep_init_map(&(sk)->sk_lock.dep_map, (name), (key), 0); \
1712 return lockdep_is_held(&sk->sk_lock) || in lockdep_sock_is_held()
1713 lockdep_is_held(&sk->sk_lock.slock); in lockdep_sock_is_held()
[all …]
Dllc.h65 spinlock_t sk_lock; member
/linux-6.6.21/net/l2tp/
Dl2tp_ppp.c119 struct mutex sk_lock; /* Protects .sk */ member
452 mutex_lock(&ps->sk_lock); in pppol2tp_release()
454 lockdep_is_held(&ps->sk_lock)); in pppol2tp_release()
456 mutex_unlock(&ps->sk_lock); in pppol2tp_release()
549 mutex_init(&ps->sk_lock); in pppol2tp_session_init()
770 mutex_lock(&ps->sk_lock); in pppol2tp_connect()
772 lockdep_is_held(&ps->sk_lock)) || in pppol2tp_connect()
774 mutex_unlock(&ps->sk_lock); in pppol2tp_connect()
793 mutex_lock(&ps->sk_lock); in pppol2tp_connect()
796 mutex_unlock(&ps->sk_lock); in pppol2tp_connect()
[all …]
/linux-6.6.21/net/core/
Dsock.c570 mutex_acquire(&sk->sk_lock.dep_map, 0, 1, _RET_IP_); in __sk_receive_skb()
574 mutex_release(&sk->sk_lock.dep_map, _RET_IP_); in __sk_receive_skb()
2959 __releases(&sk->sk_lock.slock) in __lock_sock()
2960 __acquires(&sk->sk_lock.slock) in __lock_sock()
2965 prepare_to_wait_exclusive(&sk->sk_lock.wq, &wait, in __lock_sock()
2967 spin_unlock_bh(&sk->sk_lock.slock); in __lock_sock()
2969 spin_lock_bh(&sk->sk_lock.slock); in __lock_sock()
2973 finish_wait(&sk->sk_lock.wq, &wait); in __lock_sock()
2977 __releases(&sk->sk_lock.slock) in __release_sock()
2978 __acquires(&sk->sk_lock.slock) in __release_sock()
[all …]
Dsock_map.c115 __acquires(&sk->sk_lock.slock) in sock_map_sk_acquire()
122 __releases(&sk->sk_lock.slock) in sock_map_sk_release()
/linux-6.6.21/net/rxrpc/
Dsendmsg.c571 __releases(&rx->sk.sk_lock.slock) in rxrpc_new_client_call_for_sendmsg()
612 __releases(&rx->sk.sk_lock.slock) in rxrpc_do_sendmsg()
Dcall_object.c341 __releases(&rx->sk.sk_lock.slock) in rxrpc_new_client_call()
/linux-6.6.21/net/ipv6/
Dicmp.c108 if (unlikely(!spin_trylock(&sk->sk_lock.slock))) { in icmpv6_xmit_lock()
122 spin_unlock(&sk->sk_lock.slock); in icmpv6_xmit_unlock()
/linux-6.6.21/net/mptcp/
Dprotocol.h333 #define mptcp_data_lock(sk) spin_lock_bh(&(sk)->sk_lock.slock)
334 #define mptcp_data_unlock(sk) spin_unlock_bh(&(sk)->sk_lock.slock)
Dprotocol.c1064 lockdep_assert_held_once(&sk->sk_lock.slock); in __mptcp_clean_una_wakeup()
3435 __must_hold(&sk->sk_lock.slock) in mptcp_release_cb()
3457 spin_unlock_bh(&sk->sk_lock.slock); in mptcp_release_cb()
3467 spin_lock_bh(&sk->sk_lock.slock); in mptcp_release_cb()
Dsubflow.c1835 mutex_release(&listener_sk->sk_lock.dep_map, _RET_IP_); in mptcp_subflow_queue_clean()
1837 mutex_acquire(&listener_sk->sk_lock.dep_map, 0, 0, _RET_IP_); in mptcp_subflow_queue_clean()
/linux-6.6.21/net/ipv4/
Dicmp.c204 if (unlikely(!spin_trylock(&sk->sk_lock.slock))) { in icmp_xmit_lock()
217 spin_unlock(&sk->sk_lock.slock); in icmp_xmit_unlock()
Dtcp_minisocks.c869 __releases(&((child)->sk_lock.slock)) in tcp_child_process()
Dinet_connection_sock.c1218 __releases(&sk->sk_lock.slock) in inet_csk_prepare_forced_close()
/linux-6.6.21/net/sctp/
Dinput.c542 __releases(&((__sk)->sk_lock.slock)) in sctp_err_finish()
/linux-6.6.21/net/tipc/
Dsocket.c2499 if (likely(spin_trylock_bh(&sk->sk_lock.slock))) { in tipc_sk_rcv()
2501 spin_unlock_bh(&sk->sk_lock.slock); in tipc_sk_rcv()
/linux-6.6.21/net/ceph/
Dmessenger.c456 lockdep_set_class(&sock->sk->sk_lock, &socket_class); in ceph_tcp_connect()