Lines Matching refs:memory
6 Virtual memory management is a technology used by computer systems to manage memory. Each process h…
8 …memory into memory blocks called virtual pages. The size of a virtual page is generally 4 KiB or 6…
14 | DMA zone | Addresses for direct memory access (DMA) of I/O devices.| Uncache |
16 …em zone | Addresses for allocating contiguous virtual memory. The mapped physical memory bloc…
30 In virtual memory management, the virtual address space is contiguous, but the mapped physical memo…
32 …l Mapping](kernel-small-basic-inner-reflect.md)"), accesses the physical memory based on the physi…
34 …n access specific code or data by executing the instruction for accessing the virtual memory again.
36 **Figure 1** Mapping between the virtual and physical memory addresses<br>
38 …/mapping-between-the-virtual-and-physical-memory-addresses.png "mapping-between-the-virtual-and-ph…
46 **Table 3** APIs of the virtual memory management module
67 | LOS_IsRegionTypeFile | Checks whether the address region is a file memory mapping.|
70 | LOS_SetRegionTypeFile | Sets the file memory mapping attributes. |
71 | LOS_IsRegionTypeDev | Checks whether the address region is device memory mapping.|
72 | LOS_SetRegionTypeDev | Sets the device memory mapping attributes. |
90 | LOS_VMalloc | Requests memory using **vmalloc**.|
91 | LOS_VFree | Releases memory using **vmalloc**.|
94 **Table 7** APIs for memory allocation
98 …es memory from the heap memory pool if the requested memory is less than 16 KiB; allocates multipl…
99 | LOS_KernelMallocAlign | Allocates memory with alignment attributes. The allocation rule is the sa…
100 | LOS_KernelFree | Releases the memory requested by **LOS_KernelMalloc** and **LOS_KernelMallocAlig…
101 | LOS_KernelRealloc | Reallocates the memory requested by **LOS_KernelMalloc** and **LOS_KernelMall…
108 | LOS_VmSpaceFree | Releases the process space, including the virtual memory region and page table.…
109 | LOS_VmSpaceReserve | Reserves a memory space in the process space. |
115 To use APIs related to virtual memory:
123 3. Call **vmalloc** APIs (see table 6) and memory allocation APIs (see table 7) to apply for memory…
127 …memory requested by using the memory allocation APIs must be contiguous. If the system cannot prov…
129 …memory. However, the memory is allocated in the unit of pages (4096 bytes/page in the current syst…