Home
last modified time | relevance | path

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

/Linux-v5.10/tools/testing/selftests/proc/
Dsetns-dcache.c49 int nsfd; in main() local
95 nsfd = open(buf, O_RDONLY); in main()
96 if (nsfd == -1) { in main()
104 if (setns(nsfd, CLONE_NEWNET) == -1) { in main()
Dsetns-sysvipc.c48 int nsfd; in main() local
94 nsfd = open(buf, O_RDONLY); in main()
95 if (nsfd == -1) { in main()
103 if (setns(nsfd, CLONE_NEWIPC) == -1) { in main()
/Linux-v5.10/tools/testing/selftests/timens/
Dgettime_perf.c60 int nsfd; in main() local
76 nsfd = open("/proc/self/ns/time_for_children", O_RDONLY); in main()
77 if (nsfd < 0) in main()
85 if (setns(nsfd, CLONE_NEWTIME)) in main()
Dclock_nanosleep.c116 int ret, nsfd; in main() local
132 nsfd = open("/proc/self/ns/time_for_children", O_RDONLY); in main()
133 if (nsfd < 0) in main()
136 if (setns(nsfd, CLONE_NEWTIME)) in main()
/Linux-v5.10/tools/testing/selftests/pidfd/
Dpidfd_setns_test.c385 int nsfd; in TEST_F() local
400 nsfd = self->nsfds[i]; in TEST_F()
402 nsfd = self->child_nsfds1[i]; in TEST_F()
403 ASSERT_EQ(in_same_namespace(nsfd, pid, info->name), 1) { in TEST_F()
421 int nsfd; in TEST_F() local
436 nsfd = self->nsfds[i]; in TEST_F()
438 nsfd = self->child_nsfds1[i]; in TEST_F()
439 ASSERT_EQ(in_same_namespace(nsfd, pid, info->name), 1) { in TEST_F()
474 int nsfd; in TEST_F() local
481 nsfd = self->nsfds[i]; in TEST_F()
[all …]
/Linux-v5.10/tools/testing/selftests/net/
Dipsec.c443 static int init_child(int nsfd, char *veth, unsigned int src, unsigned int dst) in init_child() argument
451 if (switch_ns(nsfd)) in init_child()