Home
last modified time | relevance | path

Searched refs:memLimit (Results 1 – 4 of 4) sorted by relevance

/kernel/liteos_a/kernel/extended/plimit/
Dlos_memlimit.c112 ProcMemLimiter *memLimit = (ProcMemLimiter *)limit; in OsMemLimitAddProcessCheck() local
114 if ((memLimit->usage + pcb->limitStat.memUsed) > memLimit->limit) { in OsMemLimitAddProcessCheck()
140 UINT32 OsMemLimitSetMemLimit(ProcMemLimiter *memLimit, UINT64 value) in OsMemLimitSetMemLimit() argument
143 if ((memLimit == NULL) || (value == 0)) { in OsMemLimitSetMemLimit()
147 if (memLimit == g_procMemLimiter) { in OsMemLimitSetMemLimit()
152 if (value < memLimit->usage) { in OsMemLimitSetMemLimit()
157 memLimit->limit = value; in OsMemLimitSetMemLimit()
188 ProcMemLimiter *memLimit = (ProcMemLimiter *)run->plimits->limitsList[PROCESS_LIMITER_ID_MEM]; in OsMemLimitCheckAndMemAdd() local
189 if ((memLimit->usage + size) > memLimit->limit) { in OsMemLimitCheckAndMemAdd()
190 memLimit->failcnt++; in OsMemLimitCheckAndMemAdd()
[all …]
Dlos_memlimit.h58 UINT32 OsMemLimitSetMemLimit(ProcMemLimiter *memLimit, UINT64 value);
Dlos_plimits.c371 ProcMemLimiter *memLimit = (ProcMemLimiter *)usage; in OsPLimitsMemUsageGet() local
378 (VOID)memcpy_s(memLimit, sizeof(ProcMemLimiter), in OsPLimitsMemUsageGet()
/kernel/liteos_a/fs/proc/os_adapt/
Dplimits_proc.c575 ProcMemLimiter *memLimit = (ProcMemLimiter *)data; in MemLimitReadLimit() local
576 if ((seqBuf == NULL) || (memLimit == NULL)) { in MemLimitReadLimit()
580 (void)LosBufPrintf(seqBuf, "%llu\n", memLimit->limit); in MemLimitReadLimit()
592 ProcMemLimiter *memLimit = (ProcMemLimiter *)pf->pPDE->data; in MemLimitWriteLimit() local
593 unsigned ret = OsMemLimitSetMemLimit(memLimit, (unsigned long long)value); in MemLimitWriteLimit()
621 ProcMemLimiter *memLimit = (ProcMemLimiter *)usage; in MemLimitStatShow() local
623 (void)LosBufPrintf(seqBuf, "\nMem used: %llu\n", memLimit->usage); in MemLimitStatShow()
624 (void)LosBufPrintf(seqBuf, "Mem peak: %llu\n", memLimit->peak); in MemLimitStatShow()
625 (void)LosBufPrintf(seqBuf, "Mem failed count: %u\n", memLimit->failcnt); in MemLimitStatShow()