Home
last modified time | relevance | path

Searched refs:containerType (Results 1 – 25 of 26) sorted by relevance

12

/kernel/liteos_a/testsuites/unittest/container/smoke/
DIt_uts_container_006.cpp35 std::string containerType = "uts"; in UtsContainerTest() local
38 auto parentlink = ReadlinkContainer(parentPid, containerType); in UtsContainerTest()
44 auto childlink = ReadlinkContainer(childsPid, containerType); in UtsContainerTest()
46 std::string filePath = GenContainerLinkPath(childsPid, containerType); in UtsContainerTest()
58 auto parentlink1 = ReadlinkContainer(parentPid, containerType); in UtsContainerTest()
DIt_user_container_004.cpp43 std::string containerType = "user"; in childFunc() local
52 auto parentlink = ReadlinkContainer(parentPid, containerType); in childFunc()
58 childlink = ReadlinkContainer(childsPid, containerType); in childFunc()
59 filePath = GenContainerLinkPath(childsPid, containerType); in childFunc()
71 parentlink1 = ReadlinkContainer(parentPid, containerType); in childFunc()
DIt_pid_container_031.cpp52 const char *containerType = "pid"; in ChildFun() local
55 auto linkBuffer1 = ReadlinkContainer(getpid(), containerType); in ChildFun()
61 auto linkBuffer2 = ReadlinkContainer(childPid, containerType); in ChildFun()
84 auto linkBuffer6 = ReadlinkContainer(getpid(), containerType); in ChildFun()
101 auto linkBuffer4 = ReadlinkContainer(childPid1, containerType); in ChildFun()
112 auto linkBuffer5 = ReadlinkContainer(childPid2, containerType); in ChildFun()
DIt_time_container_003.cpp35 char *containerType = "time"; in childFunc() local
39 auto linkBuffer = ReadlinkContainer(getppid(), containerType); in childFunc()
61 auto linkBuffer1 = ReadlinkContainer(getpid(), containerType); in childFunc()
76 char *containerType = "time"; in TimeContainerUnshare() local
DIt_pid_container_030.cpp58 const char *containerType = "pid"; in ChildFunClone1() local
71 auto linkBuffer = ReadlinkContainer(pid, containerType); in ChildFunClone1()
88 auto linkBuffer2 = ReadlinkContainer(childPid, containerType); in ChildFunClone1()
96 auto linkBuffer3 = ReadlinkContainer(childPid1, containerType); in ChildFunClone1()
DIt_ipc_container_006.cpp34 static const char *containerType = "ipc"; variable
81 auto linkBuffer = ReadlinkContainer(getpid(), containerType); in childFunc()
94 std::string filePath = GenContainerLinkPath(pid, containerType); in childFunc()
106 auto linkBuffer1 = ReadlinkContainer(getpid(), containerType); in childFunc()
107 auto linkBuffer2 = ReadlinkContainer(pid, containerType); in childFunc()
DIt_pid_container_025.cpp42 char *containerType = "pid"; in ItPidContainer025() local
49 auto linkBuffer = ReadlinkContainer(getpid(), containerType); in ItPidContainer025()
66 auto linkBuffer2 = ReadlinkContainer(getpid(), containerType); in ItPidContainer025()
DIt_pid_container_026.cpp43 char *containerType = "pid"; in ItPidContainer026() local
50 auto linkBuffer = ReadlinkContainer(getpid(), containerType); in ItPidContainer026()
58 auto linkBuffer2 = ReadlinkContainer(pid, containerType); in ItPidContainer026()
DIt_time_container_001.cpp46 char *containerType = "time"; in ItTimeContainer001() local
53 auto linkBuffer = ReadlinkContainer(getpid(), containerType); in ItTimeContainer001()
62 auto linkBuffer2 = ReadlinkContainer(pid, containerType); in ItTimeContainer001()
DIt_time_container_010.cpp45 char *containerType = "time"; in ItTimeContainer010() local
52 auto linkBuffer = ReadlinkContainer(getpid(), containerType); in ItTimeContainer010()
70 auto linkBuffer2 = ReadlinkContainer(getpid(), containerType); in ItTimeContainer010()
DIt_mnt_container_008.cpp55 std::string containerType = "mnt"; in ItMntContainer008() local
65 auto linkBuffer = ReadlinkContainer(parentPid, containerType.c_str()); in ItMntContainer008()
79 linkBuffer = ReadlinkContainer(parentPid, containerType.c_str()); in ItMntContainer008()
DIt_uts_container_005.cpp49 const char *containerType = "uts"; in UtsContainerTest() local
57 auto linkBuffer1 = ReadlinkContainer(callerPid, containerType); in UtsContainerTest()
79 auto linkBuffer2 = ReadlinkContainer(callerPid, containerType); in UtsContainerTest()
DIt_ipc_container_002.cpp95 std::string containerType = "ipc"; in ItIpcContainer002() local
131 parentlink = ReadlinkContainer(parentPid, containerType); in ItIpcContainer002()
132 childlink = ReadlinkContainer(childPid, containerType); in ItIpcContainer002()
133 filePath = GenContainerLinkPath(childPid, containerType); in ItIpcContainer002()
DIt_time_container_002.cpp106 char *containerType = "time"; in TimeContainerUnshare() local
122 auto linkBuffer = ReadlinkContainer(getpid(), containerType); in TimeContainerUnshare()
131 auto linkBuffer2 = ReadlinkContainer(pid, containerType); in TimeContainerUnshare()
DIt_ipc_container_005.cpp43 char *containerType = "ipc"; in childFunc() local
44 auto linkBuffer = ReadlinkContainer(getpid(), containerType); in childFunc()
51 auto linkBuffer1 = ReadlinkContainer(getpid(), containerType); in childFunc()
DIt_pid_container_029.cpp57 const char *containerType = "pid"; in ChildFunClone1() local
70 auto linkBuffer = ReadlinkContainer(pid, containerType); in ChildFunClone1()
DIt_pid_container_027.cpp79 const char *containerType = "pid"; in ChildFunClone1() local
93 auto linkBuffer = ReadlinkContainer(pid, containerType); in ChildFunClone1()
DIt_pid_container_028.cpp79 const char *containerType = "pid"; in ChildFunClone1() local
92 auto linkBuffer = ReadlinkContainer(pid, containerType); in ChildFunClone1()
DIt_ipc_container_004.cpp33 static const char *containerType = "ipc"; variable
82 auto linkBuffer = ReadlinkContainer(getpid(), containerType); in childFunc()
/kernel/liteos_a/testsuites/unittest/container/full/
DIt_pid_container_002.cpp113 char *containerType = "pid"; in ChildFunClone1() local
119 auto linkBuffer = ReadlinkContainer(childPid, containerType); in ChildFunClone1()
120 auto linkBuffer1 = ReadlinkContainer(getpid(), containerType); in ChildFunClone1()
DIt_pid_container_005.cpp78 const char *containerType = "pid"; in ChildFunClone1() local
91 auto linkBuffer = ReadlinkContainer(pid, containerType); in ChildFunClone1()
/kernel/liteos_a/kernel/extended/container/
Dlos_container.c600 STATIC UINT32 SetNsGetFlagByContainerType(UINT32 containerType) in SetNsGetFlagByContainerType() argument
602 if (containerType >= (UINT32)CONTAINER_MAX) { in SetNsGetFlagByContainerType()
605 ContainerType type = (ContainerType)containerType; in SetNsGetFlagByContainerType()
675 UINT32 containerType = 0; in SetNsParamCheck() local
681 LosProcessCB *processCB = (LosProcessCB *)ProcfsContainerGet(fd, &containerType); in SetNsParamCheck()
687 *flag = SetNsGetFlagByContainerType(containerType); in SetNsParamCheck()
690 if ((*flag == 0) || (*flag != SetNsGetFlagByContainerType(containerType))) { in SetNsParamCheck()
/kernel/liteos_a/testsuites/unittest/container/
DIt_container_test.h108 std::string GenContainerLinkPath(int pid, const std::string& containerType);
110 extern std::string ReadlinkContainer(int pid, const std::string& containerType);
DIt_container_test.cpp246 std::string GenContainerLinkPath(int pid, const std::string& containerType) in GenContainerLinkPath() argument
249 buf << "/proc/" << pid << "/container/" << containerType; in GenContainerLinkPath()
253 std::string ReadlinkContainer(int pid, const std::string& containerType) in ReadlinkContainer() argument
256 auto path = GenContainerLinkPath(pid, containerType); in ReadlinkContainer()
/kernel/liteos_a/fs/proc/include/
Dinternal.h91 void *ProcfsContainerGet(int fd, unsigned int *containerType);

12