Home
last modified time | relevance | path

Searched full:container (Results 1 – 25 of 467) sorted by relevance

12345678910>>...19

/kernel/liteos_a/testsuites/unittest/container/
Dconfig.gni36 "$TEST_UNITTEST_DIR/container",
39 sources_entry = [ "$TEST_UNITTEST_DIR/container/It_container_test.cpp" ]
41 sources_smoke = [ "$TEST_UNITTEST_DIR/container/smoke/It_container_001.cpp" ]
47 "$TEST_UNITTEST_DIR/container/smoke/It_pid_container_023.cpp",
48 "$TEST_UNITTEST_DIR/container/smoke/It_pid_container_025.cpp",
49 "$TEST_UNITTEST_DIR/container/smoke/It_pid_container_026.cpp",
50 "$TEST_UNITTEST_DIR/container/smoke/It_pid_container_027.cpp",
51 "$TEST_UNITTEST_DIR/container/smoke/It_pid_container_028.cpp",
52 "$TEST_UNITTEST_DIR/container/smoke/It_pid_container_029.cpp",
53 "$TEST_UNITTEST_DIR/container/smoke/It_pid_container_030.cpp",
[all …]
DIt_container_test.cpp249 buf << "/proc/" << pid << "/container/" << containerType; in GenContainerLinkPath()
285 * @tc.desc: uts container function test case
297 * @tc.desc: uts container function test case
309 * @tc.desc: uts container function test case
321 * @tc.desc: uts container function test case
333 * @tc.desc: uts container function test case
345 * @tc.desc: uts container function test case
357 * @tc.desc: uts container function test case
369 * @tc.desc: uts container function test case
381 * @tc.desc: uts container function test case
[all …]
/kernel/linux/linux-5.10/drivers/vfio/
Dvfio_iommu_spapr_tce.c48 * A container needs to remember which preregistered region it has
57 * The container descriptor supports only a single group per container.
58 * Required by the API as the container is not supplied with the IOMMU group
73 static long tce_iommu_mm_set(struct tce_container *container) in tce_iommu_mm_set() argument
75 if (container->mm) { in tce_iommu_mm_set()
76 if (container->mm == current->mm) in tce_iommu_mm_set()
81 container->mm = current->mm; in tce_iommu_mm_set()
82 mmgrab(container->mm); in tce_iommu_mm_set()
87 static long tce_iommu_prereg_free(struct tce_container *container, in tce_iommu_prereg_free() argument
92 ret = mm_iommu_put(container->mm, tcemem->mem); in tce_iommu_prereg_free()
[all …]
Dvfio.c75 struct vfio_container *container; member
277 * Container objects - containers are created when /dev/vfio/vfio is
279 * it's freed via kref. Must support container/group/device being
282 static void vfio_container_get(struct vfio_container *container) in vfio_container_get() argument
284 kref_get(&container->kref); in vfio_container_get()
289 struct vfio_container *container; in vfio_container_release() local
290 container = container_of(kref, struct vfio_container, kref); in vfio_container_release()
292 kfree(container); in vfio_container_release()
295 static void vfio_container_put(struct vfio_container *container) in vfio_container_put() argument
297 kref_put(&container->kref, vfio_container_release); in vfio_container_put()
[all …]
/kernel/liteos_a/kernel/extended/container/
Dlos_container.c36 STATIC Container g_rootContainer;
50 processCB->container = &g_rootContainer; in OsContainerInitSystemProcess()
54 LOS_AtomicInc(&processCB->container->rc); in OsContainerInitSystemProcess()
56 …(VOID)OsAllocSpecifiedVpidUnsafe(processCB->processID, processCB->container->pidContainer, process… in OsContainerInitSystemProcess()
241 STATIC INLINE Container *CreateContainer(VOID) in CreateContainer()
243 Container *container = (Container *)LOS_MemAlloc(m_aucSysMem1, sizeof(Container)); in CreateContainer() local
244 if (container == NULL) { in CreateContainer()
248 (VOID)memset_s(container, sizeof(Container), 0, sizeof(Container)); in CreateContainer()
250 LOS_AtomicInc(&container->rc); in CreateContainer()
251 return container; in CreateContainer()
[all …]
Dlos_time_container.c61 TimeContainer *newTimeContainer = parent->container->timeForChildContainer; in CreateTimeContainer()
64 child->container->timeContainer = newTimeContainer; in CreateTimeContainer()
65 child->container->timeForChildContainer = newTimeContainer; in CreateTimeContainer()
88 TimeContainer *currTimeContainer = parent->container->timeContainer; in OsCopyTimeContainer()
90 if (currTimeContainer == parent->container->timeForChildContainer) { in OsCopyTimeContainer()
93 child->container->timeContainer = currTimeContainer; in OsCopyTimeContainer()
94 child->container->timeForChildContainer = currTimeContainer; in OsCopyTimeContainer()
106 UINT32 OsUnshareTimeContainer(UINTPTR flags, LosProcessCB *curr, Container *newContainer) in OsUnshareTimeContainer()
111 newContainer->timeContainer = curr->container->timeContainer; in OsUnshareTimeContainer()
112 newContainer->timeForChildContainer = curr->container->timeForChildContainer; in OsUnshareTimeContainer()
[all …]
Dlos_pid_container.c45 PidContainer *pidContainer = processCB->container->pidContainer; in FreeVpid()
63 if (pidContainer == processCB->container->pidContainer) { in FreeVpid()
64 processCB->container->pidContainer = NULL; in FreeVpid()
134 PidContainer *pidContainer = processCB->container->pidContainer; in OsAllocVpid()
189 PidContainer *pidContainer = processCB->container->pidContainer; in OsAllocVtid()
222 PidContainer *pidContainer = curr->container->pidContainer; in OsPidContainerDestroyAllProcess()
246 PRINT_ERR("Pid container kill all process failed, pid %u, errno=%d\n", index, -ret); in OsPidContainerDestroyAllProcess()
251 PRINT_ERR("Pid container wait pid %d failed, errno=%d\n", index, -ret); in OsPidContainerDestroyAllProcess()
295 VOID OsPidContainerDestroy(Container *container, LosProcessCB *processCB) in OsPidContainerDestroy() argument
297 if (container == NULL) { in OsPidContainerDestroy()
[all …]
Dlos_uts_container.c94 UtsContainer *parentContainer = parent->container->utsContainer; in CreateUtsContainer()
104 child->container->utsContainer = newUtsContainer; in CreateUtsContainer()
127 UtsContainer *currUtsContainer = parent->container->utsContainer; in OsCopyUtsContainer()
132 child->container->utsContainer = currUtsContainer; in OsCopyUtsContainer()
144 UINT32 OsUnshareUtsContainer(UINTPTR flags, LosProcessCB *curr, Container *newContainer) in OsUnshareUtsContainer()
147 UtsContainer *parentContainer = curr->container->utsContainer; in OsUnshareUtsContainer()
175 UINT32 OsSetNsUtsContainer(UINT32 flags, Container *container, Container *newContainer) in OsSetNsUtsContainer() argument
178 newContainer->utsContainer = container->utsContainer; in OsSetNsUtsContainer()
179 LOS_AtomicInc(&container->utsContainer->rc); in OsSetNsUtsContainer()
183 newContainer->utsContainer = OsCurrProcessGet()->container->utsContainer; in OsSetNsUtsContainer()
[all …]
Dlos_ipc_container.c83 IpcContainer *parentContainer = parent->container->ipcContainer; in CreateIpcContainer()
91 child->container->ipcContainer = newIpcContainer; in CreateIpcContainer()
114 IpcContainer *currIpcContainer = parent->container->ipcContainer; in OsCopyIpcContainer()
119 child->container->ipcContainer = currIpcContainer; in OsCopyIpcContainer()
131 UINT32 OsUnshareIpcContainer(UINTPTR flags, LosProcessCB *curr, Container *newContainer) in OsUnshareIpcContainer()
134 IpcContainer *parentContainer = curr->container->ipcContainer; in OsUnshareIpcContainer()
160 UINT32 OsSetNsIpcContainer(UINT32 flags, Container *container, Container *newContainer) in OsSetNsIpcContainer() argument
163 newContainer->ipcContainer = container->ipcContainer; in OsSetNsIpcContainer()
164 LOS_AtomicInc(&container->ipcContainer->rc); in OsSetNsIpcContainer()
168 newContainer->ipcContainer = OsCurrProcessGet()->container->ipcContainer; in OsSetNsIpcContainer()
[all …]
Dlos_mnt_container.c44 return &OsCurrProcessGet()->container->mntContainer->mountList; in GetContainerMntList()
67 MntContainer *parentContainer = parent->container->mntContainer; in CreateMntContainer()
75 child->container->mntContainer = newMntContainer; in CreateMntContainer()
117 MntContainer *currMntContainer = parent->container->mntContainer; in OsCopyMntContainer()
122 child->container->mntContainer = currMntContainer; in OsCopyMntContainer()
136 return CopyMountList(currMntContainer, child->container->mntContainer); in OsCopyMntContainer()
139 UINT32 OsUnshareMntContainer(UINTPTR flags, LosProcessCB *curr, Container *newContainer) in OsUnshareMntContainer()
143 MntContainer *parentContainer = curr->container->mntContainer; in OsUnshareMntContainer()
175 UINT32 OsSetNsMntContainer(UINT32 flags, Container *container, Container *newContainer) in OsSetNsMntContainer() argument
178 newContainer->mntContainer = container->mntContainer; in OsSetNsMntContainer()
[all …]
Dlos_net_container.c149 VOID OsNetContainerDestroy(Container *container) in OsNetContainerDestroy() argument
152 if (container == NULL) { in OsNetContainerDestroy()
157 NetContainer *netContainer = container->netContainer; in OsNetContainerDestroy()
172 container->netContainer = NULL; in OsNetContainerDestroy()
196 STATIC UINT32 CreateNetContainer(Container *container, NetContainer *parentContainer) in CreateNetContainer() argument
219 container->netContainer = newNetContainer; in CreateNetContainer()
227 NetContainer *currNetContainer = parent->container->netContainer; in OsCopyNetContainer()
232 child->container->netContainer = currNetContainer; in OsCopyNetContainer()
241 return CreateNetContainer(child->container, currNetContainer); in OsCopyNetContainer()
244 UINT32 OsUnshareNetContainer(UINTPTR flags, LosProcessCB *curr, Container *newContainer) in OsUnshareNetContainer()
[all …]
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/display/dc/basics/
Dvector.c37 vector->container = NULL; in dal_vector_construct()
40 /* Container must be non-zero size*/ in dal_vector_construct()
45 vector->container = kcalloc(capacity, struct_size, GFP_KERNEL); in dal_vector_construct()
46 if (vector->container == NULL) in dal_vector_construct()
64 vector->container = NULL; in dal_vector_presized_costruct()
67 /* Container must be non-zero size*/ in dal_vector_presized_costruct()
72 vector->container = kcalloc(count, struct_size, GFP_KERNEL); in dal_vector_presized_costruct()
74 if (vector->container == NULL) in dal_vector_presized_costruct()
83 vector->container + i * struct_size, in dal_vector_presized_costruct()
135 kfree(vector->container); in dal_vector_destruct()
[all …]
/kernel/liteos_a/kernel/base/include/
Dlos_pid_container_pri.h40 struct Container;
66 #define OS_PID_CONTAINER_FROM_PCB(processCB) ((processCB)->container->pidContainer)
71 ((processCB)->container->pidContainer != (currProcessCB)->container->pidContainer)
74 (((processCB)->container->pidContainer != (processCB)->container->pidForChildContainer) && \
75 ((processCB)->container->pidForChildContainer->referenced == FALSE))
82 VOID OsPidContainerDestroy(struct Container *container, LosProcessCB *processCB);
86 UINT32 OsUnsharePidContainer(UINTPTR flags, LosProcessCB *curr, struct Container *newContainer);
88 UINT32 OsSetNsPidContainer(UINT32 flags, struct Container *container, struct Container *newContaine…
Dlos_uts_container_pri.h41 struct Container;
53 UINT32 OsUnshareUtsContainer(UINTPTR flags, LosProcessCB *curr, struct Container *newContainer);
55 UINT32 OsSetNsUtsContainer(UINT32 flags, struct Container *container, struct Container *newContaine…
57 VOID OsUtsContainerDestroy(struct Container *container);
Dlos_net_container_pri.h40 struct Container;
52 UINT32 OsUnshareNetContainer(UINTPTR flags, LosProcessCB *curr, struct Container *newContainer);
54 UINT32 OsSetNsNetContainer(UINT32 flags, struct Container *container, struct Container *newContaine…
56 VOID OsNetContainerDestroy(struct Container *container);
Dlos_mnt_container_pri.h42 struct Container;
56 UINT32 OsUnshareMntContainer(UINTPTR flags, LosProcessCB *curr, struct Container *newContainer);
58 UINT32 OsSetNsMntContainer(UINT32 flags, struct Container *container, struct Container *newContaine…
60 VOID OsMntContainerDestroy(struct Container *container);
Dlos_time_container_pri.h38 struct Container;
51 UINT32 OsUnshareTimeContainer(UINTPTR flags, LosProcessCB *curr, struct Container *newContainer);
53 UINT32 OsSetNsTimeContainer(UINT32 flags, struct Container *container, struct Container *newContain…
55 VOID OsTimeContainerDestroy(struct Container *container);
Dlos_ipc_container_pri.h40 struct Container;
65 UINT32 OsUnshareIpcContainer(UINTPTR flags, LosProcessCB *curr, struct Container *newContainer);
67 UINT32 OsSetNsIpcContainer(UINT32 flags, struct Container *container, struct Container *newContaine…
69 VOID OsIpcContainerDestroy(struct Container *container);
/kernel/linux/linux-5.10/Documentation/driver-api/
Dvfio.rst80 a container class, which may hold one or more groups. A container
83 On its own, the container provides little functionality, with all
85 The user needs to add a group into the container for the next level
99 Once the group is ready, it may be added to the container by opening
102 previously opened container file. If desired and if the IOMMU driver
104 be set to the same container. If a group fails to set to a container
105 with existing groups, a new empty container will need to be used
108 With a group (or groups) attached to a container, the remaining
169 int container, group, device, i;
176 /* Create a new container */
[all …]
/kernel/linux/linux-5.10/drivers/scsi/aacraid/
Dcommsup.c1066 u32 channel, id, lun, container; in aac_handle_aif() local
1075 /* Sniff for container changes */ in aac_handle_aif()
1079 container = channel = id = lun = (u32)-1; in aac_handle_aif()
1091 container = le32_to_cpu(((__le32 *)aifcmd->data)[1]); in aac_handle_aif()
1092 if ((container >> 28)) { in aac_handle_aif()
1093 container = (u32)-1; in aac_handle_aif()
1096 channel = (container >> 24) & 0xF; in aac_handle_aif()
1098 container = (u32)-1; in aac_handle_aif()
1101 id = container & 0xFFFF; in aac_handle_aif()
1103 container = (u32)-1; in aac_handle_aif()
[all …]
/kernel/liteos_a/kernel/extended/
DKconfig117 ######################### config options of container ####################
119 bool "Enable container Feature"
124 bool "Enable pid container Feature"
129 bool "Enable uts container Feature"
134 bool "Enable mnt container Feature"
144 bool "Enable ipc container Feature"
149 bool "Enable time container"
154 bool "Enable user container"
159 bool "Enable net container"
/kernel/linux/linux-5.10/Documentation/security/tpm/
Dtpm_vtpm_proxy.rst15 container. This allows programs to interact with a TPM in a container
17 container gets its own unique, emulated, software TPM.
22 To make an emulated software TPM available to each container, the container
25 descriptor. The former is moved into the container by creating a character
27 is passed to the TPM emulator. Software inside the container can then send
/kernel/linux/linux-5.10/net/batman-adv/
Dtvlv.c47 * batadv_tvlv_handler_put() - decrement the tvlv container refcounter and
106 * batadv_tvlv_container_put() - decrement the tvlv container refcounter and
108 * @tvlv: the tvlv container to free
119 * batadv_tvlv_container_get() - retrieve tvlv container from the tvlv container
122 * @type: tvlv container type to look for
123 * @version: tvlv container version to look for
128 * Return: tvlv container if found or NULL otherwise.
153 * batadv_tvlv_container_list_size() - calculate the size of the tvlv container
178 * batadv_tvlv_container_remove() - remove tvlv container from the tvlv
179 * container list
[all …]
/kernel/linux/linux-5.10/drivers/base/
Dattribute_container.c3 * attribute_container.c - implementation of a simple container for classes
24 * container .. it should never be visible outside this file */
47 * attribute_container_classdev_to_container - given a classdev, return the container
51 * Returns the container associated with this classdev.
67 * attribute_container_register - register an attribute container
69 * @cont: The container to register. This must be allocated by the
88 * attribute_container_unregister - remove a container registration
90 * @cont: previously registered container to remove
123 * attribute_container_add_device - see if any container is interested in dev
160 dev_err(dev, "failed to allocate class container\n"); in attribute_container_add_device()
[all …]
/kernel/linux/linux-5.10/drivers/gpu/drm/omapdrm/
Dtcm.h2 * TILER container manager specification and support functions for TI
57 u16 width, height; /* container dimensions */
76 BASIC TILER CONTAINER MANAGER INTERFACE
86 * width and height fits within container
87 * number of pages is more than the size of the container
95 * Deinitialize tiler container manager.
97 * @param tcm Pointer to container manager.
111 * Reserves a 2D area in the container.
113 * @param tcm Pointer to container manager.
117 * all values may be supported by the container manager,
[all …]

12345678910>>...19