/kernel/liteos_a/kernel/extended/container/ |
D | los_time_container.c | 106 UINT32 OsUnshareTimeContainer(UINTPTR flags, LosProcessCB *curr, Container *newContainer) in OsUnshareTimeContainer() argument 111 newContainer->timeContainer = curr->container->timeContainer; in OsUnshareTimeContainer() 112 newContainer->timeForChildContainer = curr->container->timeForChildContainer; in OsUnshareTimeContainer() 113 LOS_AtomicInc(&newContainer->timeContainer->rc); in OsUnshareTimeContainer() 114 if (newContainer->timeContainer != newContainer->timeForChildContainer) { in OsUnshareTimeContainer() 115 LOS_AtomicInc(&newContainer->timeForChildContainer->rc); in OsUnshareTimeContainer() 139 newContainer->timeContainer = curr->container->timeContainer; in OsUnshareTimeContainer() 140 LOS_AtomicInc(&newContainer->timeContainer->rc); in OsUnshareTimeContainer() 141 newContainer->timeForChildContainer = timeForChild; in OsUnshareTimeContainer() 147 UINT32 OsSetNsTimeContainer(UINT32 flags, Container *container, Container *newContainer) in OsSetNsTimeContainer() argument [all …]
|
D | los_container.c | 514 STATIC UINT32 UnshareCreateNewContainers(UINT32 flags, LosProcessCB *curr, Container *newContainer) in UnshareCreateNewContainers() argument 518 ret = OsUnsharePidContainer(flags, curr, newContainer); in UnshareCreateNewContainers() 524 ret = OsUnshareUtsContainer(flags, curr, newContainer); in UnshareCreateNewContainers() 530 ret = OsUnshareMntContainer(flags, curr, newContainer); in UnshareCreateNewContainers() 536 ret = OsUnshareIpcContainer(flags, curr, newContainer); in UnshareCreateNewContainers() 542 ret = OsUnshareTimeContainer(flags, curr, newContainer); in UnshareCreateNewContainers() 548 ret = OsUnshareNetContainer(flags, curr, newContainer); in UnshareCreateNewContainers() 577 Container *newContainer = CreateContainer(); in OsUnshare() local 578 if (newContainer == NULL) { in OsUnshare() 582 ret = UnshareCreateNewContainers(flags, curr, newContainer); in OsUnshare() [all …]
|
D | los_mnt_container.c | 95 STATIC UINT32 CopyMountList(MntContainer *parentContainer, MntContainer *newContainer) in CopyMountList() argument 106 LOS_ListTailInsert(&newContainer->mountList, &newMnt->mountList); in CopyMountList() 139 UINT32 OsUnshareMntContainer(UINTPTR flags, LosProcessCB *curr, Container *newContainer) in OsUnshareMntContainer() argument 147 newContainer->mntContainer = parentContainer; in OsUnshareMntContainer() 169 newContainer->mntContainer = mntContainer; in OsUnshareMntContainer() 175 UINT32 OsSetNsMntContainer(UINT32 flags, Container *container, Container *newContainer) in OsSetNsMntContainer() argument 178 newContainer->mntContainer = container->mntContainer; in OsSetNsMntContainer() 183 newContainer->mntContainer = OsCurrProcessGet()->container->mntContainer; in OsSetNsMntContainer() 184 LOS_AtomicInc(&newContainer->mntContainer->rc); in OsSetNsMntContainer()
|
D | los_ipc_container.c | 131 UINT32 OsUnshareIpcContainer(UINTPTR flags, LosProcessCB *curr, Container *newContainer) in OsUnshareIpcContainer() argument 138 newContainer->ipcContainer = parentContainer; in OsUnshareIpcContainer() 154 newContainer->ipcContainer = ipcContainer; in OsUnshareIpcContainer() 160 UINT32 OsSetNsIpcContainer(UINT32 flags, Container *container, Container *newContainer) in OsSetNsIpcContainer() argument 163 newContainer->ipcContainer = container->ipcContainer; in OsSetNsIpcContainer() 168 newContainer->ipcContainer = OsCurrProcessGet()->container->ipcContainer; in OsSetNsIpcContainer() 169 LOS_AtomicInc(&newContainer->ipcContainer->rc); in OsSetNsIpcContainer()
|
D | los_uts_container.c | 144 UINT32 OsUnshareUtsContainer(UINTPTR flags, LosProcessCB *curr, Container *newContainer) in OsUnshareUtsContainer() argument 151 newContainer->utsContainer = parentContainer; in OsUnshareUtsContainer() 167 newContainer->utsContainer = utsContainer; in OsUnshareUtsContainer() 175 UINT32 OsSetNsUtsContainer(UINT32 flags, Container *container, Container *newContainer) in OsSetNsUtsContainer() argument 178 newContainer->utsContainer = container->utsContainer; in OsSetNsUtsContainer() 183 newContainer->utsContainer = OsCurrProcessGet()->container->utsContainer; in OsSetNsUtsContainer() 184 LOS_AtomicInc(&newContainer->utsContainer->rc); in OsSetNsUtsContainer()
|
D | los_pid_container.c | 449 UINT32 OsUnsharePidContainer(UINTPTR flags, LosProcessCB *curr, Container *newContainer) in OsUnsharePidContainer() argument 454 newContainer->pidContainer = curr->container->pidContainer; in OsUnsharePidContainer() 455 newContainer->pidForChildContainer = curr->container->pidForChildContainer; in OsUnsharePidContainer() 456 if (newContainer->pidContainer != newContainer->pidForChildContainer) { in OsUnsharePidContainer() 457 LOS_AtomicInc(&newContainer->pidForChildContainer->rc); in OsUnsharePidContainer() 486 newContainer->pidContainer = curr->container->pidContainer; in OsUnsharePidContainer() 487 newContainer->pidForChildContainer = pidForChild; in OsUnsharePidContainer() 493 UINT32 OsSetNsPidContainer(UINT32 flags, Container *container, Container *newContainer) in OsSetNsPidContainer() argument 497 newContainer->pidContainer = curr->container->pidContainer; in OsSetNsPidContainer() 500 newContainer->pidForChildContainer = container->pidContainer; in OsSetNsPidContainer() [all …]
|
D | los_net_container.c | 244 UINT32 OsUnshareNetContainer(UINTPTR flags, LosProcessCB *curr, Container *newContainer) in OsUnshareNetContainer() argument 251 newContainer->netContainer = parentContainer; in OsUnshareNetContainer() 261 return CreateNetContainer(newContainer, parentContainer); in OsUnshareNetContainer() 264 UINT32 OsSetNsNetContainer(UINT32 flags, Container *container, Container *newContainer) in OsSetNsNetContainer() argument 267 newContainer->netContainer = container->netContainer; in OsSetNsNetContainer() 272 newContainer->netContainer = OsCurrProcessGet()->container->netContainer; in OsSetNsNetContainer() 273 LOS_AtomicInc(&newContainer->netContainer->rc); in OsSetNsNetContainer()
|
/kernel/liteos_a/kernel/base/include/ |
D | los_net_container_pri.h | 52 UINT32 OsUnshareNetContainer(UINTPTR flags, LosProcessCB *curr, struct Container *newContainer); 54 …T32 OsSetNsNetContainer(UINT32 flags, struct Container *container, struct Container *newContainer);
|
D | los_uts_container_pri.h | 53 UINT32 OsUnshareUtsContainer(UINTPTR flags, LosProcessCB *curr, struct Container *newContainer); 55 …T32 OsSetNsUtsContainer(UINT32 flags, struct Container *container, struct Container *newContainer);
|
D | los_mnt_container_pri.h | 56 UINT32 OsUnshareMntContainer(UINTPTR flags, LosProcessCB *curr, struct Container *newContainer); 58 …T32 OsSetNsMntContainer(UINT32 flags, struct Container *container, struct Container *newContainer);
|
D | los_time_container_pri.h | 51 UINT32 OsUnshareTimeContainer(UINTPTR flags, LosProcessCB *curr, struct Container *newContainer); 53 …32 OsSetNsTimeContainer(UINT32 flags, struct Container *container, struct Container *newContainer);
|
D | los_ipc_container_pri.h | 65 UINT32 OsUnshareIpcContainer(UINTPTR flags, LosProcessCB *curr, struct Container *newContainer); 67 …T32 OsSetNsIpcContainer(UINT32 flags, struct Container *container, struct Container *newContainer);
|
D | los_pid_container_pri.h | 86 UINT32 OsUnsharePidContainer(UINTPTR flags, LosProcessCB *curr, struct Container *newContainer); 88 …T32 OsSetNsPidContainer(UINT32 flags, struct Container *container, struct Container *newContainer);
|