/kernel/liteos_a/testsuites/unittest/container/smoke/ |
D | It_uts_container_006.cpp | 35 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()
|
D | It_user_container_004.cpp | 43 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()
|
D | It_pid_container_031.cpp | 52 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()
|
D | It_time_container_003.cpp | 35 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
|
D | It_pid_container_030.cpp | 58 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()
|
D | It_ipc_container_006.cpp | 34 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()
|
D | It_pid_container_025.cpp | 42 char *containerType = "pid"; in ItPidContainer025() local 49 auto linkBuffer = ReadlinkContainer(getpid(), containerType); in ItPidContainer025() 66 auto linkBuffer2 = ReadlinkContainer(getpid(), containerType); in ItPidContainer025()
|
D | It_pid_container_026.cpp | 43 char *containerType = "pid"; in ItPidContainer026() local 50 auto linkBuffer = ReadlinkContainer(getpid(), containerType); in ItPidContainer026() 58 auto linkBuffer2 = ReadlinkContainer(pid, containerType); in ItPidContainer026()
|
D | It_time_container_001.cpp | 46 char *containerType = "time"; in ItTimeContainer001() local 53 auto linkBuffer = ReadlinkContainer(getpid(), containerType); in ItTimeContainer001() 62 auto linkBuffer2 = ReadlinkContainer(pid, containerType); in ItTimeContainer001()
|
D | It_time_container_010.cpp | 45 char *containerType = "time"; in ItTimeContainer010() local 52 auto linkBuffer = ReadlinkContainer(getpid(), containerType); in ItTimeContainer010() 70 auto linkBuffer2 = ReadlinkContainer(getpid(), containerType); in ItTimeContainer010()
|
D | It_mnt_container_008.cpp | 55 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()
|
D | It_uts_container_005.cpp | 49 const char *containerType = "uts"; in UtsContainerTest() local 57 auto linkBuffer1 = ReadlinkContainer(callerPid, containerType); in UtsContainerTest() 79 auto linkBuffer2 = ReadlinkContainer(callerPid, containerType); in UtsContainerTest()
|
D | It_ipc_container_002.cpp | 95 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()
|
D | It_time_container_002.cpp | 106 char *containerType = "time"; in TimeContainerUnshare() local 122 auto linkBuffer = ReadlinkContainer(getpid(), containerType); in TimeContainerUnshare() 131 auto linkBuffer2 = ReadlinkContainer(pid, containerType); in TimeContainerUnshare()
|
D | It_ipc_container_005.cpp | 43 char *containerType = "ipc"; in childFunc() local 44 auto linkBuffer = ReadlinkContainer(getpid(), containerType); in childFunc() 51 auto linkBuffer1 = ReadlinkContainer(getpid(), containerType); in childFunc()
|
D | It_pid_container_029.cpp | 57 const char *containerType = "pid"; in ChildFunClone1() local 70 auto linkBuffer = ReadlinkContainer(pid, containerType); in ChildFunClone1()
|
D | It_pid_container_027.cpp | 79 const char *containerType = "pid"; in ChildFunClone1() local 93 auto linkBuffer = ReadlinkContainer(pid, containerType); in ChildFunClone1()
|
D | It_pid_container_028.cpp | 79 const char *containerType = "pid"; in ChildFunClone1() local 92 auto linkBuffer = ReadlinkContainer(pid, containerType); in ChildFunClone1()
|
D | It_ipc_container_004.cpp | 33 static const char *containerType = "ipc"; variable 82 auto linkBuffer = ReadlinkContainer(getpid(), containerType); in childFunc()
|
/kernel/liteos_a/testsuites/unittest/container/full/ |
D | It_pid_container_002.cpp | 113 char *containerType = "pid"; in ChildFunClone1() local 119 auto linkBuffer = ReadlinkContainer(childPid, containerType); in ChildFunClone1() 120 auto linkBuffer1 = ReadlinkContainer(getpid(), containerType); in ChildFunClone1()
|
D | It_pid_container_005.cpp | 78 const char *containerType = "pid"; in ChildFunClone1() local 91 auto linkBuffer = ReadlinkContainer(pid, containerType); in ChildFunClone1()
|
/kernel/liteos_a/kernel/extended/container/ |
D | los_container.c | 600 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/ |
D | It_container_test.h | 108 std::string GenContainerLinkPath(int pid, const std::string& containerType); 110 extern std::string ReadlinkContainer(int pid, const std::string& containerType);
|
D | It_container_test.cpp | 246 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/ |
D | internal.h | 91 void *ProcfsContainerGet(int fd, unsigned int *containerType);
|