Searched refs:resourceLimit (Results 1 – 3 of 3) sorted by relevance
166 struct rlimit *resourceLimit = pcb->resourceLimit; in getrlimit() local176 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() local219 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 …]
135 struct rlimit *resourceLimit; member
462 if (processCB->resourceLimit != NULL) { in OsProcessResourcesToFree()463 (VOID)LOS_MemFree((VOID *)m_aucSysMem0, processCB->resourceLimit); in OsProcessResourcesToFree()464 processCB->resourceLimit = NULL; in OsProcessResourcesToFree()