Home
last modified time | relevance | path

Searched refs:LosVmSpace (Results 1 – 22 of 22) sorted by relevance

/kernel/liteos_a/kernel/base/include/
Dlos_vm_map.h69 typedef struct VmSpace LosVmSpace; typedef
87 LosVmSpace *space;
127 } LosVmSpace; typedef
257 STATIC INLINE BOOL OsIsVmRegionEmpty(LosVmSpace *vmSpace) in OsIsVmRegionEmpty()
265 LosVmSpace *LOS_GetKVmSpace(VOID);
267 LosVmSpace *LOS_GetVmallocSpace(VOID);
270 BOOL LOS_IsRangeInSpace(const LosVmSpace *space, VADDR_T vaddr, size_t size);
271 STATUS_T LOS_VmSpaceReserve(LosVmSpace *space, size_t size, VADDR_T vaddr);
272 INT32 OsUserHeapFree(LosVmSpace *vmSpace, VADDR_T addr, size_t len);
273 VADDR_T OsAllocRange(LosVmSpace *vmSpace, size_t len);
[all …]
Dlos_vm_dump.h60 INT32 OsRegionOverlapCheckUnlock(LosVmSpace *space, LosVmMapRegion *region);
61 UINT32 OsShellCmdProcessVmUsage(LosVmSpace *space);
62 UINT32 OsShellCmdProcessPmUsage(LosVmSpace *space, UINT32 *sharePm, UINT32 *actualPm);
63 UINT32 OsUProcessPmUsage(LosVmSpace *space, UINT32 *sharePm, UINT32 *actualPm);
64 UINT32 OsKProcessPmUsage(LosVmSpace *kAspace, UINT32 *actualPm);
65 VOID OsDumpAspace(LosVmSpace *space);
66 UINT32 OsCountRegionPages(LosVmSpace *space, LosVmMapRegion *region, UINT32 *pssPages);
67 UINT32 OsCountAspacePages(LosVmSpace *space);
71 INT32 OsRegionOverlapCheck(LosVmSpace *space, LosVmMapRegion *region);
73 LosProcessCB *OsGetPIDByAspace(const LosVmSpace *space);
Dlos_process_pri.h114 LosVmSpace *vmSpace; /**< VMM space for processes */
437 STATIC INLINE LosVmSpace *OsProcessVmSpaceGet(const LosProcessCB *processCB) in OsProcessVmSpaceGet()
533 extern VOID OsExecProcessVmSpaceRestore(LosVmSpace *oldSpace);
534 extern LosVmSpace *OsExecProcessVmSpaceReplace(LosVmSpace *newSpace, UINTPTR stackBase, INT32 rando…
535 extern UINT32 OsExecRecycleAndInit(LosProcessCB *processCB, const CHAR *name, LosVmSpace *oldAspace…
Dlos_vm_shm_pri.h62 VOID OsShmFork(LosVmSpace *space, LosVmMapRegion *oldRegion, LosVmMapRegion *newRegion);
63 VOID OsShmRegionFree(LosVmSpace *space, LosVmMapRegion *region);
/kernel/liteos_a/kernel/base/vm/
Dlos_vm_map.c57 LosVmSpace g_kVmSpace;
58 LosVmSpace g_vMallocSpace;
60 LosVmSpace *LOS_CurrSpaceGet(VOID) in LOS_CurrSpaceGet()
65 LosVmSpace *LOS_SpaceGet(VADDR_T vaddr) in LOS_SpaceGet()
78 LosVmSpace *LOS_GetKVmSpace(VOID) in LOS_GetKVmSpace()
88 LosVmSpace *LOS_GetVmallocSpace(VOID) in LOS_GetVmallocSpace()
134 STATIC BOOL OsVmSpaceInitCommon(LosVmSpace *vmSpace, VADDR_T *virtTtb) in OsVmSpaceInitCommon()
159 BOOL OsKernVmSpaceInit(LosVmSpace *vmSpace, VADDR_T *virtTtb) in OsKernVmSpaceInit()
172 BOOL OsVMallocSpaceInit(LosVmSpace *vmSpace, VADDR_T *virtTtb) in OsVMallocSpaceInit()
192 BOOL OsUserVmSpaceInit(LosVmSpace *vmSpace, VADDR_T *virtTtb) in OsUserVmSpaceInit()
[all …]
Dlos_vm_dump.c85 INT32 OsRegionOverlapCheckUnlock(LosVmSpace *space, LosVmMapRegion *region) in OsRegionOverlapCheckUnlock()
111 UINT32 OsShellCmdProcessVmUsage(LosVmSpace *space) in OsShellCmdProcessVmUsage()
139 UINT32 OsKProcessPmUsage(LosVmSpace *kSpace, UINT32 *actualPm) in OsKProcessPmUsage()
146 LosVmSpace *space = NULL; in OsKProcessPmUsage()
165 LOS_DL_LIST_FOR_EACH_ENTRY(space, spaceList, LosVmSpace, node) { in OsKProcessPmUsage()
182 UINT32 OsShellCmdProcessPmUsage(LosVmSpace *space, UINT32 *sharePm, UINT32 *actualPm) in OsShellCmdProcessPmUsage()
198 UINT32 OsUProcessPmUsage(LosVmSpace *space, UINT32 *sharePm, UINT32 *actualPm) in OsUProcessPmUsage()
254 LosProcessCB *OsGetPIDByAspace(const LosVmSpace *space) in OsGetPIDByAspace()
276 UINT32 OsCountRegionPages(LosVmSpace *space, LosVmMapRegion *region, UINT32 *pssPages) in OsCountRegionPages()
310 UINT32 OsCountAspacePages(LosVmSpace *space) in OsCountAspacePages()
[all …]
Dlos_vm_syscall.c112 LosVmSpace *vmSpace = OsCurrProcessGet()->vmSpace; in LOS_MMap()
190 VOID *OsShrinkHeap(VOID *addr, LosVmSpace *space) in OsShrinkHeap()
205 LosVmSpace *space = OsCurrProcessGet()->vmSpace; in LOS_DoBrk()
283 LosVmSpace *space = OsCurrProcessGet()->vmSpace; in LOS_DoMprotect()
356 LosVmSpace *space = OsCurrProcessGet()->vmSpace; in OsMremapCheck()
411 LosVmSpace *space = OsCurrProcessGet()->vmSpace; in LOS_DoMremap()
502 LosVmSpace *space = NULL; in LOS_DumpMemRegion()
Dlos_vm_fault.c106 LosVmSpace *space = region->space; in OsDoReadFault()
180 LosVmSpace *space = NULL; in OsDoCowFault()
262 LosVmSpace *space = region->space; in OsDoSharedFault()
341 LosVmSpace *space = LOS_SpaceGet(vaddr); in OsVmPageFaultHandler()
Dshm.c345 STATIC VOID ShmVmmMapping(LosVmSpace *space, LOS_DL_LIST *pageList, VADDR_T vaddr, UINT32 regionFla… in ShmVmmMapping()
363 VOID OsShmFork(LosVmSpace *space, LosVmMapRegion *oldRegion, LosVmMapRegion *newRegion) in OsShmFork()
382 VOID OsShmRegionFree(LosVmSpace *space, LosVmMapRegion *region) in OsShmRegionFree()
533 LosVmSpace *space = OsCurrProcessGet()->vmSpace; in ShmatVmmAlloc()
748 LosVmSpace *space = OsCurrProcessGet()->vmSpace; in ShmDt()
/kernel/liteos_a/kernel/extended/dynload/include/
Dlos_load_elf.h115 LosVmSpace *newSpace;
116 LosVmSpace *oldSpace;
/kernel/liteos_a/fs/proc/os_adapt/
Dvmm_proc.c46 LosVmSpace *space = NULL; in OsVmDumpSeqSpaces()
58 LOS_DL_LIST_FOR_EACH_ENTRY(space, aspaceList, LosVmSpace, node) { in OsVmDumpSeqSpaces()
Dprocess_proc.c195 unsigned int size = sizeof(LosVmSpace) + sizeof(LosVmMapRegion); in ProcessMemInfoRead()
196 LosVmSpace *vmSpace = (LosVmSpace *)LOS_MemAlloc(m_aucSysMem1, size); in ProcessMemInfoRead()
201 LosVmMapRegion *heap = (LosVmMapRegion *)((char *)vmSpace + sizeof(LosVmSpace)); in ProcessMemInfoRead()
209 (void)memcpy_s(vmSpace, sizeof(LosVmSpace), pcb->vmSpace, sizeof(LosVmSpace)); in ProcessMemInfoRead()
/kernel/liteos_a/syscall/
Dsyscall_pub.c33 int CheckRegion(const LosVmSpace *space, VADDR_T ptr, size_t len) in CheckRegion()
35 LosVmMapRegion *region = LOS_RegionFind((LosVmSpace *)space, ptr); in CheckRegion()
Dsyscall_pub.h43 extern int CheckRegion(const LosVmSpace *space, VADDR_T ptr, size_t len);
56 LosVmSpace *__aspace = OsCurrProcessGet()->vmSpace; \
/kernel/liteos_a/drivers/char/mem/src/
Dmem.c62 LosVmSpace *space = LOS_SpaceGet(vaddr); in MemMap()
/kernel/liteos_a/kernel/base/core/
Dlos_info.c113 STATIC VOID GetProcessMemInfo(ProcessInfo *pcbInfo, const LosProcessCB *processCB, LosVmSpace *vmSp… in GetProcessMemInfo()
218 LosVmSpace *vmSpace = processCB->vmSpace;
Dlos_process.c643 LosVmSpace *space = NULL; in OsProcessCBRecycleToFree()
1675 LITE_OS_SEC_TEXT VOID OsExecProcessVmSpaceRestore(LosVmSpace *oldSpace) in OsExecProcessVmSpaceRestore()
1685 LITE_OS_SEC_TEXT LosVmSpace *OsExecProcessVmSpaceReplace(LosVmSpace *newSpace, UINTPTR stackBase, I… in OsExecProcessVmSpaceReplace()
1693 LosVmSpace *oldSpace = processCB->vmSpace; in OsExecProcessVmSpaceReplace()
1705 LosVmSpace *oldSpace, UINTPTR oldFiles) in OsExecRecycleAndInit()
/kernel/liteos_a/kernel/extended/vdso/src/
Dlos_vdso.c57 STATIC INT32 OsVdsoMap(LosVmSpace *space, size_t len, PADDR_T paddr, VADDR_T vaddr, UINT32 flag) in OsVdsoMap()
/kernel/liteos_a/arch/arm/arm/src/
Dlos_exc.c425 STATIC VOID OsDumpExcVaddrRegion(LosVmSpace *space, LosVmMapRegion *region) in OsDumpExcVaddrRegion()
467 STATIC VOID OsDumpProcessUsedMemRegion(LosProcessCB *runProcess, LosVmSpace *runspace, UINT16 vmmFl… in OsDumpProcessUsedMemRegion()
489 LosVmSpace *runspace = NULL; in OsDumpProcessUsedMemNode()
631 LosVmSpace *runspace = runProcess->vmSpace; in IsValidFP()
1130 LosVmSpace *space = LOS_SpaceGet(vaddr); in OsPrintExcHead()
Dlos_arch_mmu.c975 LosVmSpace *kSpace = LOS_GetKVmSpace(); in OsSwitchTmpTTB()
1033 LosVmSpace *kSpace = LOS_GetKVmSpace(); in OsSetKSectionAttr()
1096 LosVmSpace *kSpace = LOS_GetKVmSpace(); in OsKSectionNewAttrEnable()
/kernel/liteos_a/kernel/base/misc/
Dvm_shellcmd.c60 LosVmSpace *kAspace = LOS_GetKVmSpace(); in OsDumpKernelAspace()
/kernel/liteos_a/kernel/extended/dynload/src/
Dlos_load_elf.c423 INT32 OsGetKernelVaddr(LosVmSpace *space, VADDR_T vaddr, VADDR_T *kvaddr) in OsGetKernelVaddr()
748 STATIC UINT32 OsStackAlloc(LosVmSpace *space, VADDR_T vaddr, UINT32 vsize, UINT32 psize, UINT32 reg… in OsStackAlloc()