Documentation
¶
Overview ¶
Package dmaheap provides buffer allocation via Linux dma-buf heaps (/dev/dma_heap/system). This is a fallback allocator when AIDL/HIDL gralloc services are unavailable.
Buffers allocated this way are plain dma-buf FDs without gralloc metadata. They work for camera HALs that can import raw dma-buf FDs but may not work with HALs that require gralloc-specific handle formats.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Allocate ¶
Allocate allocates a dma-buf of the given size via /dev/dma_heap/system. Returns the file descriptor for the dma-buf. The caller is responsible for closing the FD.
func AllocateUncached ¶
AllocateUncached allocates an uncached dma-buf.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.