Home
last modified time | relevance | path

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

/linux-6.1.9/net/unix/
Daf_unix.c690 static void copy_peercred(struct sock *sk, struct sock *peersk) in copy_peercred() argument
695 if (sk < peersk) { in copy_peercred()
697 spin_lock_nested(&peersk->sk_peer_lock, SINGLE_DEPTH_NESTING); in copy_peercred()
699 spin_lock(&peersk->sk_peer_lock); in copy_peercred()
704 sk->sk_peer_pid = get_pid(peersk->sk_peer_pid); in copy_peercred()
705 sk->sk_peer_cred = get_cred(peersk->sk_peer_cred); in copy_peercred()
708 spin_unlock(&peersk->sk_peer_lock); in copy_peercred()