Home
last modified time | relevance | path

Searched refs:newContainer (Results 1 – 13 of 13) sorted by relevance

/kernel/liteos_a/kernel/extended/container/
Dlos_time_container.c106 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 …]
Dlos_container.c514 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 …]
Dlos_mnt_container.c95 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()
Dlos_ipc_container.c131 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()
Dlos_uts_container.c144 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()
Dlos_pid_container.c449 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 …]
Dlos_net_container.c244 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/
Dlos_net_container_pri.h52 UINT32 OsUnshareNetContainer(UINTPTR flags, LosProcessCB *curr, struct Container *newContainer);
54 …T32 OsSetNsNetContainer(UINT32 flags, struct Container *container, struct Container *newContainer);
Dlos_uts_container_pri.h53 UINT32 OsUnshareUtsContainer(UINTPTR flags, LosProcessCB *curr, struct Container *newContainer);
55 …T32 OsSetNsUtsContainer(UINT32 flags, struct Container *container, struct Container *newContainer);
Dlos_mnt_container_pri.h56 UINT32 OsUnshareMntContainer(UINTPTR flags, LosProcessCB *curr, struct Container *newContainer);
58 …T32 OsSetNsMntContainer(UINT32 flags, struct Container *container, struct Container *newContainer);
Dlos_time_container_pri.h51 UINT32 OsUnshareTimeContainer(UINTPTR flags, LosProcessCB *curr, struct Container *newContainer);
53 …32 OsSetNsTimeContainer(UINT32 flags, struct Container *container, struct Container *newContainer);
Dlos_ipc_container_pri.h65 UINT32 OsUnshareIpcContainer(UINTPTR flags, LosProcessCB *curr, struct Container *newContainer);
67 …T32 OsSetNsIpcContainer(UINT32 flags, struct Container *container, struct Container *newContainer);
Dlos_pid_container_pri.h86 UINT32 OsUnsharePidContainer(UINTPTR flags, LosProcessCB *curr, struct Container *newContainer);
88 …T32 OsSetNsPidContainer(UINT32 flags, struct Container *container, struct Container *newContainer);