Searched refs:nsfd (Results 1 – 6 of 6) sorted by relevance
/Linux-v5.10/tools/testing/selftests/proc/ |
D | setns-dcache.c | 49 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()
|
D | setns-sysvipc.c | 48 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/ |
D | gettime_perf.c | 60 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()
|
D | clock_nanosleep.c | 116 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/ |
D | pidfd_setns_test.c | 385 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/ |
D | ipsec.c | 443 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()
|