Lines Matching defs:drm_file
5 //! C header: [`include/drm/drm_file.h`](srctree/include/drm/drm_file.h)
24 /// `self.0` is a valid instance of a `struct drm_file`.
26 pub struct File<T: DriverFile>(Opaque<bindings::drm_file>, PhantomData<T>);
34 /// `raw_file` must be a valid pointer to an open `struct drm_file`, opened through `T::open`.
35 pub unsafe fn from_raw<'a>(ptr: *mut bindings::drm_file) -> &'a File<T> {
40 pub(super) fn as_raw(&self) -> *mut bindings::drm_file {
52 // `struct drm_file`, hence `driver_priv` has been properly initialized by `open_callback`.
56 /// The open callback of a `struct drm_file`.
59 raw_file: *mut bindings::drm_file,
66 // SAFETY: `raw_file` is a valid pointer to a `struct drm_file`.
86 /// The postclose callback of a `struct drm_file`.
89 raw_file: *mut bindings::drm_file,