pub struct Object<T: DriverObject> { /* private fields */ }Expand description
A shmem-backed GEM object.
§Invariants
obj contains a valid initialized struct drm_gem_shmem_object for the lifetime of this
object.
Implementations§
Source§impl<T: DriverObject> Object<T>
impl<T: DriverObject> Object<T>
Trait Implementations§
Source§impl<T: DriverObject> AllocImpl for Object<T>
impl<T: DriverObject> AllocImpl for Object<T>
Source§impl<T> AlwaysRefCounted for Object<T>where
Self: IntoGEMObject,
T: DriverObject,
impl<T> AlwaysRefCounted for Object<T>where
Self: IntoGEMObject,
T: DriverObject,
Source§impl<T: DriverObject> Deref for Object<T>
impl<T: DriverObject> Deref for Object<T>
Source§impl<T: DriverObject> DerefMut for Object<T>
impl<T: DriverObject> DerefMut for Object<T>
Source§impl<T: DriverObject> HasPinData for Object<T>
impl<T: DriverObject> HasPinData for Object<T>
Source§impl<T: DriverObject> IntoGEMObject for Object<T>
impl<T: DriverObject> IntoGEMObject for Object<T>
impl<T: DriverObject> Send for Object<T>
impl<T: DriverObject> Sync for Object<T>
Auto Trait Implementations§
impl<T> !Freeze for Object<T>
impl<T> !RefUnwindSafe for Object<T>
impl<T> !UnsafeUnpin for Object<T>
impl<T> !UnwindSafe for Object<T>
Blanket Implementations§
Source§impl<T> BaseObject for Twhere
T: IntoGEMObject,
impl<T> BaseObject for Twhere
T: IntoGEMObject,
Source§fn create_handle<D, F>(&self, file: &File<F>) -> Result<u32>
fn create_handle<D, F>(&self, file: &File<F>) -> Result<u32>
Creates a new handle for the object associated with a given
File
(or returns an existing one).Source§fn lookup_handle<D, F>(file: &File<F>, handle: u32) -> Result<ARef<Self>>
fn lookup_handle<D, F>(file: &File<F>, handle: u32) -> Result<ARef<Self>>
Looks up an object by its handle for a given
File.Source§fn create_mmap_offset(&self) -> Result<u64>
fn create_mmap_offset(&self) -> Result<u64>
Creates an mmap offset to map the object from userspace.
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