Struct dma_buf::DmaBuf

source ·
pub struct DmaBuf { /* private fields */ }
Expand description

A DMA-Buf buffer

Implementations§

Maps a DmaBuf for the CPU to access it

Panics

If the buffer size reported by the kernel (i64) cannot fit into an usize.

Errors

Will return an error if either the Buffer’s length can’t be retrieved, or if the mmap call fails.

Trait Implementations§

Extracts the raw file descriptor. Read more
Formats the value using the given formatter. Read more
Converts to this type from the input type.
Constructs a new instance of Self from the given raw file descriptor. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.