# GrallocFuncs - [Overview](#section859227232165631) - [Summary](#section1937256718165631) - [Data Fields](#pub-attribs) - [Details](#section386149568165631) - [Field](#section419891595165631) - [AllocMem](#a48c1f21c086ead11bcb1a53bbec2d285) - [FlushCache](#ad56665aa0ff48995b5ec72a8095416d8) - [FlushMCache](#aceac1511a490c2ade1e33723d0e20960) - [FreeMem](#af80e6c92c5ba7e2419da27cafe19bcff) - [Mmap](#ab64438d785bc59050cd4f0a759bd531b) - [MmapCache](#a25005370b14ff2a0c860b2272b354e3f) - [Unmap](#a55864e4912348f40dd77584e96ad4647) ## **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 to memory without cache in the process's address space. |
MmapCache )(GrallocBuffer *buffer) |
Maps memory 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 mapped via Mmap to memory and invalidates the data in the cache. |
| buffer | Indicates the pointer to the buffer of the memory to allocate. |
| buffer | Indicates the pointer to the buffer of the cache to flush. |
| buffer | Indicates the pointer to the buffer of the cache to flush. |
| buffer | Indicates the pointer to the buffer of the memory to release. |
| buffer | Indicates the pointer to the buffer of the memory to map. |
| buffer | Indicates the pointer to the buffer of the memory to map. |
| buffer | Indicates the pointer to the buffer of the memory to unmap. |