Home
last modified time | relevance | path

Searched refs:LosProcessCB (Results 1 – 25 of 57) sorted by relevance

123

/kernel/liteos_a/kernel/base/include/
Dlos_process_pri.h150 } LosProcessCB; typedef
152 extern LosProcessCB *g_processCBArray;
155 #define OS_PCB_FROM_RPID(processID) (((LosProcessCB *)g_processCBArray) + (processID))
161 #define OS_PCB_FROM_TCB(taskCB) ((LosProcessCB *)((taskCB)->processCB))
162 #define OS_PCB_FROM_TID(taskID) ((LosProcessCB *)(OS_TCB_FROM_TID(taskID)->processCB))
163 #define OS_GET_PGROUP_LEADER(pgroup) ((LosProcessCB *)((pgroup)->pgroupLeader))
164 #define OS_PCB_FROM_SIBLIST(ptr) LOS_DL_LIST_ENTRY((ptr), LosProcessCB, siblingList)
165 #define OS_PCB_FROM_PENDLIST(ptr) LOS_DL_LIST_ENTRY((ptr), LosProcessCB, pendList)
252 STATIC INLINE BOOL OsProcessIsUnused(const LosProcessCB *processCB) in OsProcessIsUnused()
261 STATIC INLINE BOOL OsProcessIsInactive(const LosProcessCB *processCB) in OsProcessIsInactive()
[all …]
Dlos_pid_container_pri.h38 typedef struct ProcessCB LosProcessCB; typedef
46 LosProcessCB *realParent; /* process real parent */
78 LosProcessCB *processCB, LosProcessCB *parent);
80 VOID OsPidContainerDestroyAllProcess(LosProcessCB *processCB);
82 VOID OsPidContainerDestroy(struct Container *container, LosProcessCB *processCB);
84 UINT32 OsCopyPidContainer(UINTPTR flags, LosProcessCB *child, LosProcessCB *parent, UINT32 *process…
86 UINT32 OsUnsharePidContainer(UINTPTR flags, LosProcessCB *curr, struct Container *newContainer);
92 LosProcessCB *OsGetPCBFromVpid(UINT32 vpid);
96 UINT32 OsGetVpidFromCurrContainer(const LosProcessCB *processCB);
98 UINT32 OsGetVpidFromRootContainer(const LosProcessCB *processCB);
[all …]
Dlos_credentials_pri.h40 typedef struct ProcessCB LosProcessCB; typedef
51 UINT32 OsCopyCredentials(unsigned long flags, LosProcessCB *child, LosProcessCB *parent);
55 UINT32 OsUnshareUserCredentials(UINTPTR flags, LosProcessCB *curr);
57 UINT32 OsSetNsUserContainer(struct UserContainer *targetContainer, LosProcessCB *runProcess);
61 VOID OsUserContainerDestroy(LosProcessCB *curr);
65 Credentials *PrepareCredential(LosProcessCB *runProcessCB);
Dlos_time_container_pri.h37 typedef struct ProcessCB LosProcessCB; typedef
49 UINT32 OsCopyTimeContainer(UINTPTR flags, LosProcessCB *child, LosProcessCB *parent);
51 UINT32 OsUnshareTimeContainer(UINTPTR flags, LosProcessCB *curr, struct Container *newContainer);
61 UINT32 OsGetTimeContainerMonotonic(LosProcessCB *processCB, struct timespec64 *offsets);
63 UINT32 OsSetTimeContainerMonotonic(LosProcessCB *processCB, struct timespec64 *offsets);
Dlos_container_pri.h120 VOID OsContainerInitSystemProcess(LosProcessCB *processCB);
124 UINT32 OsCopyContainers(UINTPTR flags, LosProcessCB *child, LosProcessCB *parent, UINT32 *processID…
126 VOID OsOsContainersDestroyEarly(LosProcessCB *processCB);
128 VOID OsContainersDestroy(LosProcessCB *processCB);
130 VOID OsContainerFree(LosProcessCB *processCB);
134 UINT32 OsGetContainerID(LosProcessCB *processCB, ContainerType type);
Dlos_net_container_pri.h39 typedef struct ProcessCB LosProcessCB; typedef
50 UINT32 OsCopyNetContainer(UINTPTR flags, LosProcessCB *child, LosProcessCB *parent);
52 UINT32 OsUnshareNetContainer(UINTPTR flags, LosProcessCB *curr, struct Container *newContainer);
Dlos_uts_container_pri.h40 typedef struct ProcessCB LosProcessCB; typedef
51 UINT32 OsCopyUtsContainer(UINTPTR flags, LosProcessCB *child, LosProcessCB *parent);
53 UINT32 OsUnshareUtsContainer(UINTPTR flags, LosProcessCB *curr, struct Container *newContainer);
Dlos_mnt_container_pri.h41 typedef struct ProcessCB LosProcessCB; typedef
54 UINT32 OsCopyMntContainer(UINTPTR flags, LosProcessCB *child, LosProcessCB *parent);
56 UINT32 OsUnshareMntContainer(UINTPTR flags, LosProcessCB *curr, struct Container *newContainer);
Dlos_ipc_container_pri.h44 typedef struct ProcessCB LosProcessCB; typedef
63 UINT32 OsCopyIpcContainer(UINTPTR flags, LosProcessCB *child, LosProcessCB *parent);
65 UINT32 OsUnshareIpcContainer(UINTPTR flags, LosProcessCB *curr, struct Container *newContainer);
/kernel/liteos_a/kernel/base/core/
Dlos_process.c62 LITE_OS_SEC_BSS LosProcessCB *g_processCBArray = NULL;
71 STATIC INLINE VOID OsInsertPCBToFreeList(LosProcessCB *processCB) in OsInsertPCBToFreeList()
77 (VOID)memset_s(processCB, sizeof(LosProcessCB), 0, sizeof(LosProcessCB)); in OsInsertPCBToFreeList()
86 LosProcessCB *processCB = OS_PCB_FROM_TCB(taskCB); in OsDeleteTaskFromProcess()
96 LosProcessCB *processCB = (LosProcessCB *)processID; in OsProcessAddNewTask()
136 ProcessGroup *OsCreateProcessGroup(LosProcessCB *processCB) in OsCreateProcessGroup()
161 STATIC VOID ExitProcessGroup(LosProcessCB *processCB, ProcessGroup **pgroup) in ExitProcessGroup()
163 LosProcessCB *pgroupCB = OS_GET_PGROUP_LEADER(processCB->pgroup); in ExitProcessGroup()
188 LosProcessCB *processCB = OS_GET_PGROUP_LEADER(rootPGroup); in OsFindProcessGroup()
207 LosProcessCB *childCB = NULL; in OsSendSignalToSpecifyProcessGroup()
[all …]
Dlos_info.c35 STATIC UINT32 GetCurrParentPid(UINT32 pid, const LosProcessCB *processCB) in GetCurrParentPid()
63 STATIC UINT16 GetProcessStatus(LosProcessCB *processCB) in GetProcessStatus()
79 STATIC VOID GetProcessInfo(ProcessInfo *pcbInfo, const LosProcessCB *processCB) in GetProcessInfo()
84 pcbInfo->status = GetProcessStatus((LosProcessCB *)processCB); in GetProcessInfo()
113 STATIC VOID GetProcessMemInfo(ProcessInfo *pcbInfo, const LosProcessCB *processCB, LosVmSpace *vmSp… in GetProcessMemInfo()
136 STATIC VOID GetThreadInfo(ProcessThreadInfo *threadInfo, LosProcessCB *processCB) in GetThreadInfo()
182 LosProcessCB *processCB = OS_PCB_FROM_PID(pid); in OsGetProcessThreadInfo()
205 const LosProcessCB *processCB = (LosProcessCB *)processVid->cb;
208 const LosProcessCB *processCB = OS_PCB_FROM_RPID(pid);
242 LosProcessCB *processCB = (LosProcessCB *)processVid->cb;
[all …]
/kernel/liteos_a/kernel/extended/plimit/
Dlos_ipclimit.c93 LosProcessCB *pcb = (LosProcessCB *)process; in OsIPCLimitMigrate()
112 LosProcessCB *pcb = (LosProcessCB *)process; in OsIPCLimitAddProcessCheck()
126 LosProcessCB *pcb = (LosProcessCB *)process; in OsIPCLimitAddProcess()
135 LosProcessCB *pcb = (LosProcessCB *)process; in OsIPCLimitDelProcess()
193 LosProcessCB *run = OsCurrProcessGet(); in OsIPCLimitMqAlloc()
211 LosProcessCB *run = OsCurrProcessGet(); in OsIPCLimitMqFree()
223 LosProcessCB *run = OsCurrProcessGet(); in OsIPCLimitShmAlloc()
241 LosProcessCB *run = OsCurrProcessGet(); in OsIPCLimitShmFree()
Dlos_memlimit.c95 LosProcessCB *pcb = (LosProcessCB *)process; in OsMemLimiterMigrate()
113 LosProcessCB *pcb = (LosProcessCB *)process; in OsMemLimitAddProcessCheck()
122 LosProcessCB *pcb = (LosProcessCB *)process; in OsMemLimitAddProcess()
133 LosProcessCB *pcb = (LosProcessCB *)process; in OsMemLimitDelProcess()
181 LosProcessCB *run = OsCurrProcessGet(); in OsMemLimitCheckAndMemAdd()
210 LosProcessCB *run = OsCurrProcessGet(); in OsMemLimitMemFree()
Dlos_plimits.c148 STATIC VOID PLimitsDeleteProcess(LosProcessCB *processCB) in PLimitsDeleteProcess()
167 STATIC UINT32 PLimitsAddProcess(ProcLimiterSet *plimits, LosProcessCB *processCB) in PLimitsAddProcess()
207 UINT32 OsPLimitsAddProcess(ProcLimiterSet *plimits, LosProcessCB *processCB) in OsPLimitsAddProcess()
228 LosProcessCB *processCB = OS_PCB_FROM_PID((unsigned int)pid); in OsPLimitsAddPid()
239 VOID OsPLimitsDeleteProcess(LosProcessCB *processCB) in OsPLimitsDeleteProcess()
250 LosProcessCB *processCB = NULL; in OsPLimitsPidsGet()
263 LOS_DL_LIST_FOR_EACH_ENTRY(processCB, listHead, LosProcessCB, plimitsList) { in OsPLimitsPidsGet()
274 LosProcessCB *processCB = LOS_DL_LIST_ENTRY(head->pstNext, LosProcessCB, plimitsList); in PLimitsProcessMerge()
369 LosProcessCB *processCB = NULL; in OsPLimitsMemUsageGet()
386 LOS_DL_LIST_FOR_EACH_ENTRY(processCB, listHead, LosProcessCB, plimitsList) { in OsPLimitsMemUsageGet()
[all …]
Dlos_plimits.h52 typedef struct ProcessCB LosProcessCB; typedef
94 typedef struct ProcessCB LosProcessCB; typedef
96 UINT32 OsPLimitsAddProcess(ProcLimiterSet *plimits, LosProcessCB *processCB);
98 VOID OsPLimitsDeleteProcess(LosProcessCB *processCB);
Dlos_schedlimit.c76 LosProcessCB *run = (LosProcessCB *)runTask->processCB; in OsSchedLimitUpdateRuntime()
102 LosProcessCB *processCB = (LosProcessCB *)task->processCB; in OsSchedLimitCheckTime()
/kernel/liteos_a/kernel/extended/container/
Dlos_pid_container.c40 STATIC LosProcessCB *g_defaultProcessCB = NULL;
43 STATIC VOID FreeVpid(LosProcessCB *processCB) in FreeVpid()
82 LosProcessCB *processCB, LosProcessCB *parent) in OsAllocSpecifiedVpidUnsafe()
131 STATIC UINT32 OsAllocVpid(LosProcessCB *processCB, LosProcessCB *parent) in OsAllocVpid()
187 UINT32 OsAllocVtid(LosTaskCB *taskCB, const LosProcessCB *processCB) in OsAllocVtid()
218 VOID OsPidContainerDestroyAllProcess(LosProcessCB *curr) in OsPidContainerDestroyAllProcess()
227 LosProcessCB *processCB = OS_PCB_FROM_PID(index); in OsPidContainerDestroyAllProcess()
295 VOID OsPidContainerDestroy(Container *container, LosProcessCB *processCB) in OsPidContainerDestroy()
332 STATIC UINT32 CreatePidContainer(LosProcessCB *child, LosProcessCB *parent) in CreatePidContainer()
368 STATIC UINT32 AllocVpidFormPidForChildContainer(LosProcessCB *child, LosProcessCB *parent) in AllocVpidFormPidForChildContainer()
[all …]
Dlos_credentials.c39 STATIC Credentials *CreateNewCredential(LosProcessCB *parent) in CreateNewCredential()
59 Credentials *PrepareCredential(LosProcessCB *runProcessCB) in PrepareCredential()
91 VOID OsUserContainerDestroy(LosProcessCB *curr) in OsUserContainerDestroy()
101 STATIC Credentials *CreateCredentials(unsigned long flags, LosProcessCB *parent) in CreateCredentials()
127 UINT32 OsCopyCredentials(unsigned long flags, LosProcessCB *child, LosProcessCB *parent) in OsCopyCredentials()
149 UINT32 OsUnshareUserCredentials(UINTPTR flags, LosProcessCB *curr) in OsUnshareUserCredentials()
162 UINT32 OsSetNsUserContainer(struct UserContainer *targetContainer, LosProcessCB *runProcess) in OsSetNsUserContainer()
Dlos_container.c48 VOID OsContainerInitSystemProcess(LosProcessCB *processCB) in OsContainerInitSystemProcess()
254 STATIC UINT32 CopyContainers(UINTPTR flags, LosProcessCB *child, LosProcessCB *parent, UINT32 *proc… in CopyContainers()
334 UINT32 OsCopyContainers(UINTPTR flags, LosProcessCB *child, LosProcessCB *parent, UINT32 *processID) in OsCopyContainers()
372 VOID OsContainerFree(LosProcessCB *processCB) in OsContainerFree()
381 VOID OsOsContainersDestroyEarly(LosProcessCB *processCB) in OsOsContainersDestroyEarly()
395 VOID OsContainersDestroy(LosProcessCB *processCB) in OsContainersDestroy()
425 STATIC VOID DeInitContainers(UINT32 flags, Container *container, LosProcessCB *processCB) in DeInitContainers()
468 UINT32 OsGetContainerID(LosProcessCB *processCB, ContainerType type) in OsGetContainerID()
514 STATIC UINT32 UnshareCreateNewContainers(UINT32 flags, LosProcessCB *curr, Container *newContainer) in UnshareCreateNewContainers()
560 LosProcessCB *curr = OsCurrProcessGet(); in OsUnshare()
[all …]
Dlos_time_container.c56 STATIC UINT32 CreateTimeContainer(LosProcessCB *child, LosProcessCB *parent) in CreateTimeContainer()
85 UINT32 OsCopyTimeContainer(UINTPTR flags, LosProcessCB *child, LosProcessCB *parent) in OsCopyTimeContainer()
106 UINT32 OsUnshareTimeContainer(UINTPTR flags, LosProcessCB *curr, Container *newContainer) in OsUnshareTimeContainer()
149 LosProcessCB *curr = OsCurrProcessGet(); in OsSetNsTimeContainer()
219 UINT32 OsGetTimeContainerMonotonic(LosProcessCB *processCB, struct timespec64 *offsets) in OsGetTimeContainerMonotonic()
234 UINT32 OsSetTimeContainerMonotonic(LosProcessCB *processCB, struct timespec64 *offsets) in OsSetTimeContainerMonotonic()
Dlos_ipc_container.c80 STATIC UINT32 CreateIpcContainer(LosProcessCB *child, LosProcessCB *parent) in CreateIpcContainer()
111 UINT32 OsCopyIpcContainer(UINTPTR flags, LosProcessCB *child, LosProcessCB *parent) in OsCopyIpcContainer()
131 UINT32 OsUnshareIpcContainer(UINTPTR flags, LosProcessCB *curr, Container *newContainer) in OsUnshareIpcContainer()
Dlos_mnt_container.c64 STATIC UINT32 CreateMntContainer(LosProcessCB *child, LosProcessCB *parent) in CreateMntContainer()
113 UINT32 OsCopyMntContainer(UINTPTR flags, LosProcessCB *child, LosProcessCB *parent) in OsCopyMntContainer()
139 UINT32 OsUnshareMntContainer(UINTPTR flags, LosProcessCB *curr, Container *newContainer) in OsUnshareMntContainer()
/kernel/liteos_a/security/vid/
Dvid.c36 UINT32 VidMapListInit(LosProcessCB *processCB) in VidMapListInit()
57 void VidMapDestroy(LosProcessCB *processCB) in VidMapDestroy()
76 LosProcessCB *processCB = OsCurrProcessGet(); in FindListNodeByVid()
93 LosProcessCB *processCB = OsCurrProcessGet(); in FindListNodeByRid()
112 LosProcessCB *processCB = OsCurrProcessGet(); in GetFreeVid()
152 LosProcessCB *processCB = OsCurrProcessGet(); in ReleaseVid()
181 LosProcessCB *processCB = OsCurrProcessGet(); in AddNodeByRid()
224 LosProcessCB *processCB = OsCurrProcessGet(); in RemoveNodeByVid()
/kernel/liteos_a/security/cap/
Dcapability_api.h37 VOID OsInitCapability(LosProcessCB *processCB);
38 VOID OsCopyCapability(LosProcessCB *from, LosProcessCB *to);
Dcapability.c54 VOID OsInitCapability(LosProcessCB *processCB) in OsInitCapability()
59 VOID OsCopyCapability(LosProcessCB *from, LosProcessCB *to) in OsCopyCapability()
92 LosProcessCB *processCB = NULL; in SysCapGet()

123