pub struct Owned<P> { /* private fields */ }
Expand description
The Owned
generic type of an SGTable
.
A SGTable<Owned>
signifies that the SGTable
owns all associated resources:
- The backing memory pages.
- The
struct sg_table
allocation (sgt
). - The DMA mapping, managed through a
Devres
-managedDmaMappedSgt
.
Users interact with this type through the SGTable
handle and do not need to manage
Owned
directly.
Trait Implementations§
impl<P: Send> Send for Owned<P>
impl<P: Sync> Sync for Owned<P>
Auto Trait Implementations§
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
Source§impl<T> PinInit<T> for T
impl<T> PinInit<T> for T
Source§unsafe fn __pinned_init(self, slot: *mut T) -> Result<(), Infallible>
unsafe fn __pinned_init(self, slot: *mut T) -> Result<(), Infallible>
Initializes
slot
. Read more