Searched refs:sk_pair (Results 1 - 6 of 6) sorted by relevance

/linux-master/tools/testing/selftests/pidfd/
H A Dpidfd_getfd_test.c138 int ret, sk_pair[2]; local
140 ASSERT_EQ(0, socketpair(PF_LOCAL, SOCK_SEQPACKET, 0, sk_pair)) {
143 self->sk = sk_pair[0];
149 close(sk_pair[0]);
150 if (child(sk_pair[1]))
155 close(sk_pair[1]);
164 ret = recv(sk_pair[0], &self->remote_fd, sizeof(self->remote_fd), 0);
/linux-master/net/unix/
H A Dunix_bpf.c162 struct sock *sk_pair; local
164 /* Restore does not decrement the sk_pair reference yet because we must
182 if (!psock->sk_pair) {
183 sk_pair = unix_peer(sk);
184 sock_hold(sk_pair);
185 psock->sk_pair = sk_pair;
/linux-master/samples/seccomp/
H A Duser-trap.c207 int sk_pair[2], ret = 1, status, listener; local
210 if (socketpair(PF_LOCAL, SOCK_SEQPACKET, 0, sk_pair) < 0) {
241 if (send_fd(sk_pair[1], listener) < 0)
277 listener = recv_fd(sk_pair[0]);
376 close(sk_pair[0]);
377 close(sk_pair[1]);
/linux-master/tools/testing/selftests/seccomp/
H A Dseccomp_bpf.c3544 int status, listener, sk_pair[2]; local
3554 ASSERT_EQ(socketpair(PF_LOCAL, SOCK_SEQPACKET, 0, sk_pair), 0);
3564 close(sk_pair[0]);
3565 handled = sk_pair[1];
3580 close(sk_pair[1]);
3592 EXPECT_EQ(read(sk_pair[0], &c, 1), 1);
4565 int listener, status, sk_pair[2]; local
4580 ASSERT_EQ(socketpair(PF_LOCAL, SOCK_SEQPACKET, 0, sk_pair), 0);
4596 close(sk_pair[0]);
4597 handled = sk_pair[
4637 int listener, status, sk_pair[2]; local
[all...]
/linux-master/include/linux/
H A Dskmsg.h114 struct sock *sk_pair; member in struct:sk_psock
/linux-master/net/core/
H A Dskmsg.c829 if (psock->sk_pair)
830 sock_put(psock->sk_pair);

Completed in 147 milliseconds