pub struct ObjectConfig<'a, T: DriverObject> {
pub map_wc: bool,
pub parent_resv_obj: Option<&'a Object<T>>,
}Expand description
A struct for controlling the creation of shmem-backed GEM objects.
This is used with Object::new() to control various properties that can only be set when
initially creating a shmem-backed GEM object.
Fields§
§map_wc: boolWhether to set the write-combine map flag.
parent_resv_obj: Option<&'a Object<T>>Reuse the DMA reservation from another GEM object.
The newly created Object will hold an owned refcount to parent_resv_obj if specified.
Trait Implementations§
Source§impl<'a, T: Default + DriverObject> Default for ObjectConfig<'a, T>
impl<'a, T: Default + DriverObject> Default for ObjectConfig<'a, T>
Source§fn default() -> ObjectConfig<'a, T>
fn default() -> ObjectConfig<'a, T>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<'a, T> Freeze for ObjectConfig<'a, T>
impl<'a, T> !RefUnwindSafe for ObjectConfig<'a, T>
impl<'a, T> Send for ObjectConfig<'a, T>
impl<'a, T> Sync for ObjectConfig<'a, T>
impl<'a, T> Unpin for ObjectConfig<'a, T>
impl<'a, T> UnsafeUnpin for ObjectConfig<'a, T>
impl<'a, T> !UnwindSafe for ObjectConfig<'a, T>
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