Home
last modified time | relevance | path

Searched refs:setns (Results 1 – 25 of 49) sorted by relevance

12

/linux/tools/testing/selftests/pidfd/
A Dpidfd_setns_test.c97 ret = setns(fd, CLONE_NEWTIME); in switch_timens()
345 ASSERT_NE(setns(self->pidfd, 0), 0); in TEST_F()
348 ASSERT_NE(setns(self->pidfd, -1), 0); in TEST_F()
351 ASSERT_NE(setns(self->pidfd, CLONE_VM), 0); in TEST_F()
391 ASSERT_EQ(setns(self->child_pidfd1, info->flag), 0) { in TEST_F()
427 ASSERT_EQ(setns(self->child_nsfds1[i], info->flag), 0) { in TEST_F()
466 ASSERT_EQ(setns(self->child_pidfd1, flags), 0) { in TEST_F()
510 ASSERT_EQ(setns(self->child_pidfd1, flags), 0) { in TEST_F()
527 ASSERT_NE(setns(self->child_pidfd2, info->flag), 0) { in TEST_F()
536 ASSERT_NE(setns(self->child_nsfds2[i], info->flag), 0) { in TEST_F()
[all …]
/linux/tools/testing/selftests/proc/
A D.gitignore19 /setns-dcache
20 /setns-sysvipc
A DMakefile22 TEST_GEN_PROGS += setns-dcache
23 TEST_GEN_PROGS += setns-sysvipc
A Dsetns-dcache.c104 if (setns(nsfd, CLONE_NEWNET) == -1) { in main()
A Dsetns-sysvipc.c103 if (setns(nsfd, CLONE_NEWIPC) == -1) { in main()
/linux/tools/testing/selftests/bpf/prog_tests/
A Dflow_dissector_reattach.c84 setns(old_net, CLONE_NEWNET); in unshare_net()
455 err = setns(old_net, CLONE_NEWNET); in test_link_update_netns_gone()
539 err = setns(old_net, CLONE_NEWNET); in test_link_get_info()
567 setns(old_net, CLONE_NEWNET); in test_link_get_info()
647 err = setns(init_net, CLONE_NEWNET); in serial_test_flow_dissector_reattach()
671 err = setns(saved_net, CLONE_NEWNET); in serial_test_flow_dissector_reattach()
A Dxdp_bonding.c36 ASSERT_OK(setns(root_netns_fd, CLONE_NEWNET), "restore_root_netns"); in restore_root_netns()
49 err = setns(nsfd, CLONE_NEWNET); in setns_by_name()
A Dsk_assign.c326 if (CHECK_FAIL(setns(self_net, CLONE_NEWNET))) in test_sk_assign()
A Dtc_redirect.c95 err = setns(nsfd, CLONE_NEWNET); in setns_by_fd()
/linux/tools/build/feature/
A Dtest-setns.c7 return setns(0, 0); in main()
A DMakefile67 test-setns.bin \
131 $(OUTPUT)test-setns.bin:
/linux/tools/perf/util/
A Dsetns.c7 int setns(int fd, int nstype) in setns() function
A Dnamespaces.c240 if (setns(newns, CLONE_NEWNS) < 0) in nsinfo__mountns_enter()
261 setns(nc->oldns, CLONE_NEWNS); in nsinfo__mountns_exit()
A Dnamespaces.h18 int setns(int fd, int nstype);
/linux/tools/testing/selftests/timens/
A Dgettime_perf.c93 if (setns(nsfd, CLONE_NEWTIME)) in main()
A Dclock_nanosleep.c136 if (setns(nsfd, CLONE_NEWTIME)) in main()
A Dprocfs.c33 if (setns(fd, CLONE_NEWTIME)) in switch_ns()
A Dtimens.c52 if (setns(fd, CLONE_NEWTIME)) { in switch_ns()
/linux/tools/build/
A DMakefile.feature69 setns \
/linux/tools/testing/selftests/move_mount_set_group/
A Dmove_mount_set_group_test.c371 ASSERT_EQ(setns(ca_to.mntnsfd, CLONE_NEWNS), 0); in TEST_F()
/linux/kernel/
A Dnsproxy.c527 SYSCALL_DEFINE2(setns, int, fd, int, flags) in SYSCALL_DEFINE2() argument
/linux/arch/mips/kernel/syscalls/
A Dsyscall_n64.tbl314 303 n64 setns sys_setns
/linux/arch/ia64/kernel/syscalls/
A Dsyscall.tbl318 306 common setns sys_setns
/linux/tools/perf/arch/mips/entry/syscalls/
A Dsyscall_n64.tbl314 303 n64 setns sys_setns
/linux/arch/xtensa/kernel/syscalls/
A Dsyscall.tbl331 308 common setns sys_setns

Completed in 29 milliseconds

12