/kernel/liteos_a/kernel/base/include/ |
D | los_vm_map.h | 65 typedef struct VmMapRegion LosVmMapRegion; typedef 119 LosVmMapRegion *heap; /**< heap region */ 189 STATIC INLINE VADDR_T LOS_RegionEndAddr(LosVmMapRegion *region) in LOS_RegionEndAddr() 199 STATIC INLINE BOOL LOS_IsRegionTypeFile(LosVmMapRegion* region) in LOS_IsRegionTypeFile() 204 STATIC INLINE BOOL LOS_IsRegionPermUserReadOnly(LosVmMapRegion* region) in LOS_IsRegionPermUserReadOnly() 210 STATIC INLINE BOOL LOS_IsRegionFlagPrivateOnly(LosVmMapRegion* region) in LOS_IsRegionFlagPrivateOnly() 215 STATIC INLINE VOID LOS_SetRegionTypeFile(LosVmMapRegion* region) in LOS_SetRegionTypeFile() 220 STATIC INLINE BOOL LOS_IsRegionTypeDev(LosVmMapRegion* region) in LOS_IsRegionTypeDev() 225 STATIC INLINE VOID LOS_SetRegionTypeDev(LosVmMapRegion* region) in LOS_SetRegionTypeDev() 230 STATIC INLINE BOOL LOS_IsRegionTypeAnon(LosVmMapRegion* region) in LOS_IsRegionTypeAnon() [all …]
|
D | los_vm_shm_pri.h | 62 VOID OsShmFork(LosVmSpace *space, LosVmMapRegion *oldRegion, LosVmMapRegion *newRegion); 63 VOID OsShmRegionFree(LosVmSpace *space, LosVmMapRegion *region); 64 BOOL OsIsShmRegion(LosVmMapRegion *region);
|
D | los_vm_dump.h | 59 const CHAR *OsGetRegionNameOrFilePath(LosVmMapRegion *region); 60 INT32 OsRegionOverlapCheckUnlock(LosVmSpace *space, LosVmMapRegion *region); 66 UINT32 OsCountRegionPages(LosVmSpace *space, LosVmMapRegion *region, UINT32 *pssPages); 71 INT32 OsRegionOverlapCheck(LosVmSpace *space, LosVmMapRegion *region);
|
D | los_vm_filemap.h | 189 INT32 OsVfsFileMmap(struct file *filep, LosVmMapRegion *region); 190 STATUS_T OsNamedMMap(struct file *filep, LosVmMapRegion *region); 198 VOID OsDelMapInfo(LosVmMapRegion *region, LosVmPgFault *pgFault, BOOL cleanDirty); 211 VOID OsMarkPageDirty(LosFilePage *fpage, const LosVmMapRegion *region, int off, int len);
|
/kernel/liteos_a/kernel/base/vm/ |
D | los_vm_map.c | 101 LosVmMapRegion *region = (LosVmMapRegion *)LOS_DL_LIST_ENTRY(pstNode, LosVmMapRegion, rbNode); in OsRegionRbGetKeyFn() 268 LosVmMapRegion *oldRegion = (LosVmMapRegion *)pstRbNode; in LOS_VmSpaceClone() 274 …LosVmMapRegion *newRegion = OsVmRegionDup(newVmSpace, oldRegion, oldRegion->range.base, oldRegion-… in LOS_VmSpaceClone() 326 LosVmMapRegion *OsFindRegion(LosRbTree *regionRbTree, VADDR_T vaddr, size_t len) in OsFindRegion() 328 LosVmMapRegion *regionRst = NULL; in OsFindRegion() 335 regionRst = (LosVmMapRegion *)LOS_DL_LIST_ENTRY(pstRbNode, LosVmMapRegion, rbNode); in OsFindRegion() 340 LosVmMapRegion *LOS_RegionFind(LosVmSpace *vmSpace, VADDR_T addr) in LOS_RegionFind() 342 LosVmMapRegion *region = NULL; in LOS_RegionFind() 351 LosVmMapRegion *LOS_RegionRangeFind(LosVmSpace *vmSpace, VADDR_T addr, size_t len) in LOS_RegionRangeFind() 353 LosVmMapRegion *region = NULL; in LOS_RegionRangeFind() [all …]
|
D | los_vm_dump.c | 57 const CHAR *OsGetRegionNameOrFilePath(LosVmMapRegion *region) in OsGetRegionNameOrFilePath() 85 INT32 OsRegionOverlapCheckUnlock(LosVmSpace *space, LosVmMapRegion *region) in OsRegionOverlapCheckUnlock() 87 LosVmMapRegion *regionTemp = NULL; in OsRegionOverlapCheckUnlock() 93 regionTemp = (LosVmMapRegion *)pstRbNode; in OsRegionOverlapCheckUnlock() 113 LosVmMapRegion *region = NULL; in OsShellCmdProcessVmUsage() 132 region = (LosVmMapRegion *)pstRbNode; in OsShellCmdProcessVmUsage() 200 LosVmMapRegion *region = NULL; in OsUProcessPmUsage() 220 region = (LosVmMapRegion *)pstRbNode; in OsUProcessPmUsage() 276 UINT32 OsCountRegionPages(LosVmSpace *space, LosVmMapRegion *region, UINT32 *pssPages) in OsCountRegionPages() 313 LosVmMapRegion *region = NULL; in OsCountAspacePages() [all …]
|
D | los_vm_syscall.c | 99 STATUS_T OsAnonMMap(LosVmMapRegion *region) in OsAnonMMap() 110 LosVmMapRegion *newRegion = NULL; in LOS_MMap() 176 STATIC INLINE BOOL OsProtMprotectPermCheck(unsigned long prot, LosVmMapRegion *region) in OsProtMprotectPermCheck() 208 LosVmMapRegion *region = NULL; in LOS_DoBrk() 284 LosVmMapRegion *region = NULL; in LOS_DoMprotect() 357 LosVmMapRegion *region = LOS_RegionFind(space, addr); in OsMremapCheck() 407 LosVmMapRegion *regionOld = NULL; in LOS_DoMremap() 408 LosVmMapRegion *regionNew = NULL; in LOS_DoMremap()
|
D | los_vm_fault.c | 58 STATIC STATUS_T OsVmRegionPermissionCheck(LosVmMapRegion *region, UINT32 flags) in OsVmRegionPermissionCheck() 100 STATIC STATUS_T OsDoReadFault(LosVmMapRegion *region, LosVmPgFault *vmPgFault) in OsDoReadFault() 144 STATIC LosVmPage *OsCowUnmapOrg(LosArchMmu *archMmu, LosVmMapRegion *region, LosVmPgFault *vmf) in OsCowUnmapOrg() 172 status_t OsDoCowFault(LosVmMapRegion *region, LosVmPgFault *vmPgFault) in OsDoCowFault() 256 status_t OsDoSharedFault(LosVmMapRegion *region, LosVmPgFault *vmPgFault) in OsDoSharedFault() 323 STATIC STATUS_T OsDoFileFault(LosVmMapRegion *region, LosVmPgFault *vmPgFault, UINT32 flags) in OsDoFileFault() 342 LosVmMapRegion *region = NULL; in OsVmPageFaultHandler()
|
D | los_vm_filemap.c | 170 VOID OsVmmFileRemove(LosVmMapRegion *region, LosArchMmu *archMmu, VM_OFFSET_T pgoff) in OsVmmFileRemove() 217 VOID OsMarkPageDirty(LosFilePage *fpage, const LosVmMapRegion *region, INT32 off, INT32 len) in OsMarkPageDirty() 332 VOID OsDelMapInfo(LosVmMapRegion *region, LosVmPgFault *vmf, BOOL cleanDirty) in OsDelMapInfo() 366 INT32 OsVmmFileFault(LosVmMapRegion *region, LosVmPgFault *vmf) in OsVmmFileFault() 501 INT32 OsVfsFileMmap(struct file *filep, LosVmMapRegion *region) in OsVfsFileMmap() 510 STATUS_T OsNamedMMap(struct file *filep, LosVmMapRegion *region) in OsNamedMMap() 604 INT32 OsVfsFileMmap(struct file *filep, LosVmMapRegion *region) in OsVfsFileMmap()
|
D | shm.c | 363 VOID OsShmFork(LosVmSpace *space, LosVmMapRegion *oldRegion, LosVmMapRegion *newRegion) in OsShmFork() 382 VOID OsShmRegionFree(LosVmSpace *space, LosVmMapRegion *region) in OsShmRegionFree() 405 BOOL OsIsShmRegion(LosVmMapRegion *region) in OsIsShmRegion() 530 LosVmMapRegion *ShmatVmmAlloc(struct shmIDSource *seg, const VOID *shmaddr, in ShmatVmmAlloc() 534 LosVmMapRegion *region = NULL; in ShmatVmmAlloc() 583 LosVmMapRegion *r = NULL; in ShmAt() 750 LosVmMapRegion *region = NULL; in ShmDt()
|
/kernel/liteos_a/fs/proc/os_adapt/ |
D | vmm_proc.c | 47 LosVmMapRegion *region = NULL; in OsVmDumpSeqSpaces() 76 region = (LosVmMapRegion *)pstRbNode; in OsVmDumpSeqSpaces()
|
D | process_proc.c | 195 unsigned int size = sizeof(LosVmSpace) + sizeof(LosVmMapRegion); in ProcessMemInfoRead() 201 LosVmMapRegion *heap = (LosVmMapRegion *)((char *)vmSpace + sizeof(LosVmSpace)); in ProcessMemInfoRead() 210 (void)memcpy_s(heap, sizeof(LosVmMapRegion), pcb->vmSpace->heap, sizeof(LosVmMapRegion)); in ProcessMemInfoRead()
|
/kernel/liteos_a/arch/arm/arm/src/ |
D | los_exc.c | 281 STATIC VADDR_T OsGetTextRegionBase(LosVmMapRegion *region, LosProcessCB *runProcess) in OsGetTextRegionBase() 285 LosVmMapRegion *curRegion = NULL; in OsGetTextRegionBase() 286 LosVmMapRegion *lastRegion = NULL; in OsGetTextRegionBase() 353 LosVmMapRegion *region = NULL; in OsExcSysInfo() 425 STATIC VOID OsDumpExcVaddrRegion(LosVmSpace *space, LosVmMapRegion *region) in OsDumpExcVaddrRegion() 469 LosVmMapRegion *region = NULL; in OsDumpProcessUsedMemRegion() 476 region = (LosVmMapRegion *)pstRbNodeTemp; in OsDumpProcessUsedMemRegion() 715 LosVmMapRegion *region = NULL; in OsGetUsrIpInfo()
|
/kernel/liteos_a/drivers/char/mem/src/ |
D | mem.c | 56 static ssize_t MemMap(struct file *filep, LosVmMapRegion *region) in MemMap()
|
/kernel/liteos_a/drivers/char/random/src/ |
D | random.c | 95 static ssize_t RanMap(struct file *filep, LosVmMapRegion *region) in RanMap()
|
D | random_hw.c | 93 static ssize_t RandomMap(struct file *filep, LosVmMapRegion *region) in RandomMap()
|
/kernel/liteos_a/kernel/extended/vdso/src/ |
D | los_vdso.c | 77 LosVmMapRegion *vdsoRegion = NULL; in OsVdsoLoad()
|
/kernel/liteos_a/syscall/ |
D | syscall_pub.c | 35 LosVmMapRegion *region = LOS_RegionFind((LosVmSpace *)space, ptr); in CheckRegion()
|
/kernel/liteos_a/kernel/extended/liteipc/ |
D | hm_liteipc.c | 91 STATIC int LiteIpcMmap(struct file* filep, LosVmMapRegion *region); 153 LITE_OS_SEC_TEXT STATIC INT32 DoIpcMmap(LosProcessCB *pcb, LosVmMapRegion *region) in DoIpcMmap() 199 LITE_OS_SEC_TEXT STATIC int LiteIpcMmap(struct file *filep, LosVmMapRegion *region) in LiteIpcMmap() 202 LosVmMapRegion *regionTemp = NULL; in LiteIpcMmap()
|
/kernel/liteos_a/kernel/extended/dynload/src/ |
D | los_load_elf.c | 752 LosVmMapRegion *region = NULL; in OsStackAlloc()
|
/kernel/liteos_a/kernel/base/core/ |
D | los_process.c | 1656 LosVmMapRegion *region = NULL; in OsUserInitStackAlloc()
|