Home
last modified time | relevance | path

Searched refs:regionFlags (Results 1 – 12 of 12) sorted by relevance

/kernel/liteos_a/kernel/base/include/
Dlos_vm_map.h91 UINT32 regionFlags; /**< region flags: cow, user_wired */ member
164 UINT32 regionFlags = 0; in OsCvtProtFlagsToRegionFlags() local
166 regionFlags |= VM_MAP_REGION_FLAG_PERM_USER; in OsCvtProtFlagsToRegionFlags()
167 regionFlags |= (prot & PROT_READ) ? VM_MAP_REGION_FLAG_PERM_READ : 0; in OsCvtProtFlagsToRegionFlags()
168regionFlags |= (prot & PROT_WRITE) ? (VM_MAP_REGION_FLAG_PERM_READ | VM_MAP_REGION_FLAG_PERM_WRITE… in OsCvtProtFlagsToRegionFlags()
169regionFlags |= (prot & PROT_EXEC) ? (VM_MAP_REGION_FLAG_PERM_READ | VM_MAP_REGION_FLAG_PERM_EXECUT… in OsCvtProtFlagsToRegionFlags()
170 regionFlags |= (flags & MAP_SHARED) ? VM_MAP_REGION_FLAG_SHARED : 0; in OsCvtProtFlagsToRegionFlags()
171 regionFlags |= (flags & MAP_PRIVATE) ? VM_MAP_REGION_FLAG_PRIVATE : 0; in OsCvtProtFlagsToRegionFlags()
172 regionFlags |= (flags & MAP_FIXED) ? VM_MAP_REGION_FLAG_FIXED : 0; in OsCvtProtFlagsToRegionFlags()
173 regionFlags |= (flags & MAP_FIXED_NOREPLACE) ? VM_MAP_REGION_FLAG_FIXED_NOREPLACE : 0; in OsCvtProtFlagsToRegionFlags()
[all …]
/kernel/liteos_a/kernel/base/vm/
Dlos_vm_syscall.c109 UINT32 regionFlags; in LOS_MMap() local
140 regionFlags = OsCvtProtFlagsToRegionFlags(prot, flags); in LOS_MMap()
141 newRegion = LOS_RegionAlloc(vmSpace, vaddr, len, regionFlags, pgoff); in LOS_MMap()
146 newRegion->regionFlags |= VM_MAP_REGION_FLAG_MMAP; in LOS_MMap()
247 region->regionFlags |= VM_MAP_REGION_FLAG_HEAP; in LOS_DoBrk()
301 …if ((region->regionFlags & VM_MAP_REGION_FLAG_VDSO) || (region->regionFlags & VM_MAP_REGION_FLAG_H… in LOS_DoMprotect()
306 if (LOS_IsRegionTypeFile(region) && (region->regionFlags & VM_MAP_REGION_FLAG_SHARED)) { in LOS_DoMprotect()
326 vmFlags |= (region->regionFlags & VM_MAP_REGION_FLAG_SHARED) ? VM_MAP_REGION_FLAG_SHARED : 0; in LOS_DoMprotect()
327 vmFlags |= OsInheritOldRegionName(region->regionFlags); in LOS_DoMprotect()
333 region->regionFlags = vmFlags; in LOS_DoMprotect()
[all …]
Dlos_vm_fault.c60 if ((region->regionFlags & VM_MAP_REGION_FLAG_PERM_READ) != VM_MAP_REGION_FLAG_PERM_READ) { in OsVmRegionPermissionCheck()
61 …RR("read permission check failed operation flags %x, region flags %x", flags, region->regionFlags); in OsVmRegionPermissionCheck()
66 … if ((region->regionFlags & VM_MAP_REGION_FLAG_PERM_WRITE) != VM_MAP_REGION_FLAG_PERM_WRITE) { in OsVmRegionPermissionCheck()
67 …R("write permission check failed operation flags %x, region flags %x", flags, region->regionFlags); in OsVmRegionPermissionCheck()
73 … if ((region->regionFlags & VM_MAP_REGION_FLAG_PERM_EXECUTE) != VM_MAP_REGION_FLAG_PERM_EXECUTE) { in OsVmRegionPermissionCheck()
74 …RR("exec permission check failed operation flags %x, region flags %x", flags, region->regionFlags); in OsVmRegionPermissionCheck()
127 region->regionFlags & (~VM_MAP_REGION_FLAG_PERM_WRITE)); in OsDoReadFault()
230 …ret = LOS_ArchMmuMap(&space->archMmu, (VADDR_T)vmPgFault->vaddr, newPaddr, 1, region->regionFlags); in OsDoCowFault()
274 ret = LOS_ArchMmuMap(&space->archMmu, vaddr, paddr, 1, region->regionFlags); in OsDoSharedFault()
300 ret = LOS_ArchMmuMap(&space->archMmu, vaddr, paddr, 1, region->regionFlags); in OsDoSharedFault()
[all …]
Dlos_vm_map.c270 if ((oldRegion->regionFlags & VM_MAP_REGION_FLAG_SHM) && (cloneFlags & CLONE_NEWIPC)) { in LOS_VmSpaceClone()
282 if (oldRegion->regionFlags & VM_MAP_REGION_FLAG_SHM) { in LOS_VmSpaceClone()
411 VADDR_T OsAllocSpecificRange(LosVmSpace *vmSpace, VADDR_T vaddr, size_t len, UINT32 regionFlags) in OsAllocSpecificRange() argument
422 if ((regionFlags & VM_MAP_REGION_FLAG_FIXED_NOREPLACE) != 0) { in OsAllocSpecificRange()
424 } else if ((regionFlags & VM_MAP_REGION_FLAG_FIXED) != 0) { in OsAllocSpecificRange()
457 LosVmMapRegion *OsCreateRegion(VADDR_T vaddr, size_t len, UINT32 regionFlags, unsigned long offset) in OsCreateRegion() argument
469 region->regionFlags = regionFlags; in OsCreateRegion()
503 LosVmMapRegion *LOS_RegionAlloc(LosVmSpace *vmSpace, VADDR_T vaddr, size_t len, UINT32 regionFlags,… in LOS_RegionAlloc() argument
518 rstVaddr = OsAllocSpecificRange(vmSpace, vaddr, len, regionFlags); in LOS_RegionAlloc()
528 newRegion = OsCreateRegion(rstVaddr, len, regionFlags, pgoff); in LOS_RegionAlloc()
[all …]
Dlos_vm_dump.c67 } else if (region->regionFlags & VM_MAP_REGION_FLAG_HEAP) { in OsGetRegionNameOrFilePath()
69 } else if (region->regionFlags & VM_MAP_REGION_FLAG_STACK) { in OsGetRegionNameOrFilePath()
71 } else if (region->regionFlags & VM_MAP_REGION_FLAG_TEXT) { in OsGetRegionNameOrFilePath()
73 } else if (region->regionFlags & VM_MAP_REGION_FLAG_VDSO) { in OsGetRegionNameOrFilePath()
75 } else if (region->regionFlags & VM_MAP_REGION_FLAG_MMAP) { in OsGetRegionNameOrFilePath()
77 } else if (region->regionFlags & VM_MAP_REGION_FLAG_SHM) { in OsGetRegionNameOrFilePath()
102 region->regionFlags, region->range.base, region->range.size, region->space, in OsRegionOverlapCheckUnlock()
103 … regionTemp->regionFlags, regionTemp->range.base, regionTemp->range.size, regionTemp->space); in OsRegionOverlapCheckUnlock()
384 CHAR *flagsStr = OsArchFlagsToStr(region->regionFlags); in OsDumpRegion2()
Dshm.c345 …TIC VOID ShmVmmMapping(LosVmSpace *space, LOS_DL_LIST *pageList, VADDR_T vaddr, UINT32 regionFlags) in ShmVmmMapping() argument
355 ret = LOS_ArchMmuMap(&space->archMmu, va, pa, 1, regionFlags); in ShmVmmMapping()
377 ShmVmmMapping(space, &seg->node, newRegion->range.base, newRegion->regionFlags); in OsShmFork()
407 return (region->regionFlags & VM_MAP_REGION_FLAG_SHM) ? TRUE : FALSE; in OsIsShmRegion()
538 UINT32 regionFlags; in ShmatVmmAlloc() local
544 regionFlags = OsCvtProtFlagsToRegionFlags(prot, flags); in ShmatVmmAlloc()
547 region = LOS_RegionAlloc(space, 0, seg->ds.shm_segsz, regionFlags, 0); in ShmatVmmAlloc()
568 ShmVmmMapping(space, &seg->node, region->range.base, regionFlags); in ShmatVmmAlloc()
620 r->regionFlags |= VM_MAP_REGION_FLAG_SHM; in ShmAt()
Dlos_vm_filemap.c419 …if (!((vmf->flags & VM_MAP_PF_FLAG_WRITE) && !(region->regionFlags & VM_MAP_REGION_FLAG_SHARED))) { in OsVmmFileFault()
421 fpage->flags = region->regionFlags; in OsVmmFileFault()
425 if ((vmf->flags & VM_MAP_PF_FLAG_WRITE) && (region->regionFlags & VM_MAP_REGION_FLAG_SHARED)) { in OsVmmFileFault()
/kernel/liteos_a/drivers/char/mem/src/
Dmem.c69 region->regionFlags |= VM_MAP_REGION_FLAG_STRONGLY_ORDERED; in MemMap()
74 … if (LOS_ArchMmuMap(&space->archMmu, vaddr, paddr, size >> PAGE_SHIFT, region->regionFlags) <= 0) { in MemMap()
/kernel/liteos_a/kernel/extended/vdso/src/
Dlos_vdso.c91 vdsoRegion->regionFlags |= VM_MAP_REGION_FLAG_VDSO; in OsVdsoLoad()
/kernel/liteos_a/fs/proc/os_adapt/
Dvmm_proc.c78 CHAR *flagsStr = OsArchFlagsToStr(region->regionFlags); in OsVmDumpSeqSpaces()
/kernel/liteos_a/kernel/extended/dynload/src/
Dlos_load_elf.c748 …NT32 OsStackAlloc(LosVmSpace *space, VADDR_T vaddr, UINT32 vsize, UINT32 psize, UINT32 regionFlags) in OsStackAlloc() argument
763 region = LOS_RegionAlloc(space, vaddr, vsize, regionFlags | VM_MAP_REGION_FLAG_FIXED, 0); in OsStackAlloc()
775 (VOID)LOS_ArchMmuMap(&space->archMmu, vaddrTemp, paddrTemp, 1, region->regionFlags); in OsStackAlloc()
/kernel/liteos_a/kernel/base/core/
Dlos_process.c1667 region->regionFlags |= VM_MAP_REGION_FLAG_STACK; in OsUserInitStackAlloc()