# GrallocFuncs ## **Overview** **Related Modules:** [Display](Display.md) **Description:** Defines pointers to the memory driver functions. ## **Summary** ## Data Fields
AllocMem )(GrallocBuffer *buffer) |
|
FreeMem )(GrallocBuffer *buffer) |
|
Mmap )(GrallocBuffer *buffer) |
Maps memory with a specified physical address and size to memory without cache in the process's address space. |
MmapCache )(GrallocBuffer *buffer) |
Maps memory with a specified physical address and size to memory with cache in the process's address space. |
Unmap )(GrallocBuffer *buffer) |
Unmaps memory, that is, removes any mappings in the process's address space. |
FlushCache )(GrallocBuffer *buffer) |
Flushes data from the cache to memory and invalidates the data in the cache. |
FlushMCache )(GrallocBuffer *buffer) |
Flushes data from the cache mapping to Mmap to memory and invalidates the data in the cache. |
hdl | Indicates the pointer to the handle of memory. |
type | Indicates the type of memory to allocate. The value[/table/tgroup/tbody/row/entry/div {""}) [/table/tgroup/tbody/row/entry/div/div {""}) 0 (div] (div] indicates memory without cache, [/table/tgroup/tbody/row/entry/div {""}) [/table/tgroup/tbody/row/entry/div/div {""}) 1 (div] (div] indicates memory with cache, and[/table/tgroup/tbody/row/entry/div {""}) [/table/tgroup/tbody/row/entry/div/div {""}) 2 (div] (div] indicates shared memory. |
size | Indicates the size of memory to allocate, in bytes. |
hdl | Indicates the pointer to the handle of the cache. |
size | Indicates the size of the cache from which data is to flush. |
hdl | Indicates the pointer to the handle of the cache. |
size | Indicates the size of the cache from which data is to flush. |
hdl | Indicates the pointer to the handle of memory that has been applied for. |
phyAddr | Indicates the physical address of memory to map. |
size | Indicates the size of memory to map. |
phyAddr | Indicates the physical address of memory to map. |
size | Indicates the size of memory to map. |
virAddr | Indicates the pointer to the virtual address of memory to unmap. |
size | Indicates the size of memory to unmap. |