dmaheap

package
v0.0.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 3, 2026 License: CC0-1.0 Imports: 3 Imported by: 0

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

func Allocate(size uint64) (int32, error)

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

func AllocateUncached(size uint64) (int32, error)

AllocateUncached allocates an uncached dma-buf.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL