Home
last modified time | relevance | path

Searched refs:setns (Results 26 - 50 of 79) sorted by relevance

1234

/kernel/linux/linux-6.6/tools/testing/selftests/proc/
H A Dsetns-dcache.c17 * Test that setns(CLONE_NEWNET) points to new /proc/net content even
104 if (setns(nsfd, CLONE_NEWNET) == -1) { in main()
H A Dsetns-sysvipc.c17 * Test that setns(CLONE_NEWIPC) points to new /proc/sysvipc content even
103 if (setns(nsfd, CLONE_NEWIPC) == -1) { in main()
/kernel/liteos_a/testsuites/unittest/container/smoke/
H A DIt_uts_container_006.cpp52 int ret = setns(fd, CLONE_NEWUTS); in UtsContainerTest()
H A DIt_net_container_004.cpp74 ret = setns(fd, CLONE_NEWNET); in ChildFun()
H A DIt_mnt_container_008.cpp73 ret = setns(fd, setFlag); in ItMntContainer008()
H A DIt_time_container_003.cpp55 ret = setns(fd, CLONE_NEWTIME); in childFunc()
H A DIt_user_container_004.cpp65 ret = setns(fd, CLONE_NEWUSER); in childFunc()
H A DIt_ipc_container_002.cpp137 ret = setns(fd, CLONE_NEWIPC); in ItIpcContainer002()
H A DIt_ipc_container_006.cpp100 ret = setns(fd, CLONE_NEWIPC); in childFunc()
H A DIt_pid_container_031.cpp76 ret = setns(fd, CLONE_NEWPID); in ChildFun()
/third_party/ltp/testcases/kernel/syscalls/
H A DMakefile29 sched_getaffinity sched_setaffinity sendmsg setgroups setns sighold \
/kernel/linux/linux-5.10/tools/testing/selftests/timens/
H A Dprocfs.c33 if (setns(fd, CLONE_NEWTIME)) in switch_ns()
34 return pr_perror("setns()"); in switch_ns()
H A Dgettime_perf.c85 if (setns(nsfd, CLONE_NEWTIME)) in main()
86 return pr_perror("setns"); in main()
H A Dclock_nanosleep.c136 if (setns(nsfd, CLONE_NEWTIME)) in main()
H A Dtimens.c52 if (setns(fd, CLONE_NEWTIME)) { in switch_ns()
53 pr_perror("setns()"); in switch_ns()
/kernel/linux/linux-5.10/tools/testing/selftests/proc/
H A Dsetns-sysvipc.c17 * Test that setns(CLONE_NEWIPC) points to new /proc/sysvipc content even
103 if (setns(nsfd, CLONE_NEWIPC) == -1) { in main()
/kernel/linux/linux-6.6/tools/perf/util/
H A Dnamespaces.h19 int setns(int fd, int nstype);
H A Dnamespaces.c306 if (setns(newns, CLONE_NEWNS) < 0) in nsinfo__mountns_enter()
327 setns(nc->oldns, CLONE_NEWNS); in nsinfo__mountns_exit()
/kernel/linux/linux-6.6/tools/testing/selftests/timens/
H A Dgettime_perf.c93 if (setns(nsfd, CLONE_NEWTIME)) in main()
94 return pr_perror("setns"); in main()
H A Dprocfs.c31 if (setns(fd, CLONE_NEWTIME)) in switch_ns()
32 return pr_perror("setns()"); in switch_ns()
H A Dclock_nanosleep.c136 if (setns(nsfd, CLONE_NEWTIME)) in main()
H A Dtimens.c50 if (setns(fd, CLONE_NEWTIME)) { in switch_ns()
51 pr_perror("setns()"); in switch_ns()
/third_party/rust/crates/rustix/src/backend/libc/thread/
H A Dsyscalls.rs293 pub(crate) fn setns(fd: BorrowedFd, nstype: c::c_int) -> io::Result<c::c_int> {
294 unsafe { ret_c_int(c::setns(borrowed_fd(fd), nstype)) }
/third_party/musl/porting/liteos_a/user/include/
H A Dsched.h74 int setns(int, int);
/third_party/musl/porting/liteos_m_iccarm/kernel/include/
H A Dsched.h66 int setns(int, int);

Completed in 7 milliseconds

1234