Home
last modified time | relevance | path

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

/linux/net/llc/
H A 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()
H A Dllc_core.c41 spin_lock_init(&sap->sk_lock); in llc_sap_alloc()
H A Dllc_sap.c403 spin_lock_bh(&sap->sk_lock); in llc_sap_mcast()
419 spin_unlock_bh(&sap->sk_lock); in llc_sap_mcast()
H A 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/include/net/
H A Dsock.h444 socket_lock_t sk_lock; member
1591 sk->sk_lock.owned = 0; \
1595 sizeof((sk)->sk_lock)); \
1603 return lockdep_is_held(&sk->sk_lock) || in lockdep_sock_is_held()
1665 __releases(&sk->sk_lock.slock) in unlock_sock_fast()
1669 __release(&sk->sk_lock.slock); in unlock_sock_fast()
1672 spin_unlock_bh(&sk->sk_lock.slock); in unlock_sock_fast()
1712 return sk->sk_lock.owned; in sock_owned_by_user()
1717 return sk->sk_lock.owned; in sock_owned_by_user_nocheck()
1723 sk->sk_lock.owned = 0; in sock_release_ownership()
[all …]
H A Dllc.h65 spinlock_t sk_lock; member
/linux/net/l2tp/
H A Dl2tp_ppp.c119 struct mutex sk_lock; /* Protects .sk */ member
405 mutex_lock(&ps->sk_lock); in pppol2tp_session_close()
407 lockdep_is_held(&ps->sk_lock)); in pppol2tp_session_close()
409 mutex_unlock(&ps->sk_lock); in pppol2tp_session_close()
532 mutex_init(&ps->sk_lock); in pppol2tp_session_init()
754 mutex_lock(&ps->sk_lock); in pppol2tp_connect()
758 mutex_unlock(&ps->sk_lock); in pppol2tp_connect()
779 mutex_lock(&ps->sk_lock); in pppol2tp_connect()
782 mutex_unlock(&ps->sk_lock); in pppol2tp_connect()
812 mutex_unlock(&ps->sk_lock); in pppol2tp_connect()
[all …]
H A Dl2tp_core.c1259 spin_lock_nested(&sk->sk_lock.slock, L2TP_DEPTH_NESTING); in l2tp_xmit_core()
1312 spin_unlock(&sk->sk_lock.slock); in l2tp_xmit_core()
/linux/net/core/
H A Dsock.c3039 __releases(&sk->sk_lock.slock) in __lock_sock()
3040 __acquires(&sk->sk_lock.slock) in __lock_sock()
3057 __releases(&sk->sk_lock.slock) in __release_sock()
3058 __acquires(&sk->sk_lock.slock) in __release_sock()
3091 spin_lock_bh(&sk->sk_lock.slock); in __sk_flush_backlog()
3614 spin_lock_bh(&sk->sk_lock.slock); in lock_sock_nested()
3617 sk->sk_lock.owned = 1; in lock_sock_nested()
3624 spin_lock_bh(&sk->sk_lock.slock); in release_sock()
3634 wake_up(&sk->sk_lock.wq); in release_sock()
3664 sk->sk_lock.owned = 1; in __lock_sock_fast()
[all …]
H A Dsock_map.c118 __acquires(&sk->sk_lock.slock) in sock_map_sk_acquire()
125 __releases(&sk->sk_lock.slock) in sock_map_sk_release()
/linux/net/rxrpc/
H A Dsendmsg.c559 __releases(&rx->sk.sk_lock.slock) in rxrpc_new_client_call_for_sendmsg()
609 __releases(&rx->sk.sk_lock.slock) in rxrpc_do_sendmsg()
H A Dcall_object.c326 __releases(&rx->sk.sk_lock.slock) in rxrpc_new_client_call()
/linux/net/ipv6/
H A 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/net/ipv4/
H A Dicmp.c208 if (unlikely(!spin_trylock(&sk->sk_lock.slock))) { in icmp_xmit_lock()
221 spin_unlock(&sk->sk_lock.slock); in icmp_xmit_unlock()
H A Dtcp_minisocks.c920 __releases(&((child)->sk_lock.slock)) in tcp_child_process()
H A Dinet_connection_sock.c1320 __releases(&sk->sk_lock.slock) in inet_csk_prepare_forced_close()
/linux/net/mptcp/
H A Dprotocol.h349 #define mptcp_data_lock(sk) spin_lock_bh(&(sk)->sk_lock.slock)
350 #define mptcp_data_unlock(sk) spin_unlock_bh(&(sk)->sk_lock.slock)
H A Dprotocol.c1072 lockdep_assert_held_once(&sk->sk_lock.slock); in __mptcp_clean_una_wakeup()
3453 __must_hold(&sk->sk_lock.slock) in mptcp_release_cb()
3475 spin_unlock_bh(&sk->sk_lock.slock); in mptcp_release_cb()
3485 spin_lock_bh(&sk->sk_lock.slock); in mptcp_release_cb()
H A Dsubflow.c1934 mutex_release(&listener_sk->sk_lock.dep_map, _RET_IP_); in mptcp_subflow_queue_clean()
1936 mutex_acquire(&listener_sk->sk_lock.dep_map, 0, 0, _RET_IP_); in mptcp_subflow_queue_clean()
/linux/net/sctp/
H A Dinput.c542 __releases(&((__sk)->sk_lock.slock)) in sctp_err_finish()
/linux/net/tipc/
H A Dsocket.c2494 if (likely(spin_trylock_bh(&sk->sk_lock.slock))) { in tipc_sk_rcv()
2496 spin_unlock_bh(&sk->sk_lock.slock); in tipc_sk_rcv()
/linux/net/ceph/
H A Dmessenger.c456 lockdep_set_class(&sock->sk->sk_lock, &socket_class); in ceph_tcp_connect()