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.
- Copy
Buffer - A buffer-buffer copy.
- Copy
Buffer Image - 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.
- Memory
Type - A memory type.
- Modifier
- A 64-bit DRM format modifier.
Enums§
Traits§
- Backend
- A trait that all backends must implement.
Type Aliases§
- Size
- The type for the BO size.