Type Alias v4l::io::dmabuf::DmaBufProtected

source ·
pub type DmaBufProtected = BufProtected<DmaBuf>;
Expand description

A DMA-BUF buffer which is handed out to the user as if owned, but cannot be accessed while it’s enqueued at the device for writing.

Watch out for deadlocks!

use v4l::io::dmabuf::DmaBufProtected;
use v4l::dummy;

let buf: DmaBufProtected = dummy::new_stub();
let guard = buf.read();
let mmap = guard.memory_map_ro();

Aliased Type§

struct DmaBufProtected(/* private fields */);