Home
last modified time | relevance | path

Searched refs:resourceLimit (Results 1 – 3 of 3) sorted by relevance

/kernel/liteos_a/compat/posix/src/
Dmisc.c166 struct rlimit *resourceLimit = pcb->resourceLimit; in getrlimit() local
176 if (resourceLimit == NULL) { in getrlimit()
184 rlim->rlim_cur = resourceLimit[resource].rlim_cur; in getrlimit()
185 rlim->rlim_max = resourceLimit[resource].rlim_max; in getrlimit()
198 struct rlimit *resourceLimit = NULL; in setrlimit() local
219 if (pcb->resourceLimit == NULL) { in setrlimit()
220 resourceLimit = LOS_MemAlloc((VOID *)m_aucSysMem0, RLIM_NLIMITS * sizeof(struct rlimit)); in setrlimit()
221 if (resourceLimit == NULL) { in setrlimit()
227 if (pcb->resourceLimit == NULL) { in setrlimit()
228 pcb->resourceLimit = resourceLimit; in setrlimit()
[all …]
/kernel/liteos_a/kernel/base/include/
Dlos_process_pri.h135 struct rlimit *resourceLimit; member
/kernel/liteos_a/kernel/base/core/
Dlos_process.c462 if (processCB->resourceLimit != NULL) { in OsProcessResourcesToFree()
463 (VOID)LOS_MemFree((VOID *)m_aucSysMem0, processCB->resourceLimit); in OsProcessResourcesToFree()
464 processCB->resourceLimit = NULL; in OsProcessResourcesToFree()