pub struct Attrs(/* private fields */);
Expand description
Possible attributes associated with a DMA mapping.
They can be combined with the operators |
, &
, and !
.
Values can be used from the attrs
module.
§Examples
use kernel::dma::{attrs::*, CoherentAllocation};
let attribs = DMA_ATTR_FORCE_CONTIGUOUS | DMA_ATTR_NO_WARN;
let c: CoherentAllocation<u64> =
CoherentAllocation::alloc_attrs(dev, 4, GFP_KERNEL, attribs)?;
Implementations§
Trait Implementations§
impl Copy for Attrs
impl StructuralPartialEq for Attrs
Auto Trait Implementations§
impl Freeze for Attrs
impl RefUnwindSafe for Attrs
impl Send for Attrs
impl Sync for Attrs
impl Unpin for Attrs
impl UnwindSafe for Attrs
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more