Crate hbm

Source
Expand description

HBM is a hardware buffer allocator.

This crate provides a library to allocate, export/import, and access hardware buffer objects (BOs).

A BO allocation is divided into 3 steps. The classification step validates the parameters and checks for hardware support. The create step creates the BO descriptor, which encompasses the physical layout and the supported memory types. The bind step creates or imports a memory, and binds the memory to the BO.

Modules§

dma_heap
A backend for dma-heaps.
drm_kms
A backend for DRM KMS.
udmabuf
A backend for udmabuf.
vulkan
A backend for Vulkan.

Structs§

Bo
A buffer object (BO).
Builder
A device builder.
Class
An opaque BO class.
Constraint
A BO constraint.
CopyBuffer
A buffer-buffer copy.
CopyBufferImage
A buffer-image copy.
Description
A BO Description.
Device
A device.
Flags
BO Flags.
Format
A 32-bit DRM format.
Handle
An opaque BO handle.
Layout
A BO physical layout.
Mapping
A memory mapping.
MemoryType
A memory type.
Modifier
A 64-bit DRM format modifier.

Enums§

Error
The error type for HBM operations.
Extent
A BO extent.
Usage
A BO usage.

Traits§

Backend
A trait that all backends must implement.

Type Aliases§

Size
The type for the BO size.