Lines Matching defs:sk_lock
255 * @sk_lock: synchronizer
402 socket_lock_t sk_lock;
1695 * Mark both the sk_lock and the sk_lock.slock as a
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) ||
1713 lockdep_is_held(&sk->sk_lock.slock);
1728 #define bh_lock_sock(__sk) spin_lock(&((__sk)->sk_lock.slock))
1730 spin_lock_nested(&((__sk)->sk_lock.slock), \
1732 #define bh_unlock_sock(__sk) spin_unlock(&((__sk)->sk_lock.slock))
1734 bool __lock_sock_fast(struct sock *sk) __acquires(&sk->sk_lock.slock);
1743 * sk_lock.slock locked, owned = 0, BH disabled
1747 * sk_lock.slock unlocked, owned = 1, BH enabled
1751 /* The sk_lock has mutex_lock() semantics here. */
1752 mutex_acquire(&sk->sk_lock.dep_map, 0, 0, _RET_IP_);
1760 mutex_acquire(&sk->sk_lock.dep_map, SINGLE_DEPTH_NESTING, 0, _RET_IP_);
1774 __releases(&sk->sk_lock.slock)
1778 __release(&sk->sk_lock.slock);
1780 mutex_release(&sk->sk_lock.dep_map, _RET_IP_);
1781 spin_unlock_bh(&sk->sk_lock.slock);
1814 return sk->sk_lock.owned;
1819 return sk->sk_lock.owned;
1825 sk->sk_lock.owned = 0;
1827 /* The sk_lock has mutex_unlock() semantics: */
1828 mutex_release(&sk->sk_lock.dep_map, _RET_IP_);
1838 !spin_is_locked(&sk->sk_lock.slock);