On Thu, Apr 17, 2025 at 02:53:33PM -0400, Lyude Paul wrote:
> On Fri, 2025-04-11 at 01:55 +0200, Danilo Krummrich wrote:
> > + /// Not intended to be called externally, except via
> > declare_drm_ioctls!()
> > + ///
> > + /// # Safety
> > + ///
> > + /// Callers must ensure that `pt
On Fri, 2025-04-11 at 01:55 +0200, Danilo Krummrich wrote:
> + /// Not intended to be called externally, except via
> declare_drm_ioctls!()
> + ///
> + /// # Safety
> + ///
> + /// Callers must ensure that `ptr` is valid, non-null, and has a
> non-zero reference count,
> + /// i
> +/// # Safety
> +///
> +/// `ptr` must be a valid poiner to a `struct device` embedded in `Self`.
pointer
With that fixed,
Reviewed-by: Alyssa Rosenzweig
From: Asahi Lina
Implement the abstraction for a `struct drm_device`.
A `drm::Device` creates a static const `struct drm_driver` filled with
the data from the `drm::Driver` trait implementation of the actual
driver creating the `drm::Device`.
Reviewed-by: Maxime Ripard
Signed-off-by: Asahi Lin
Implement the abstraction for a `struct drm_device`.
A `drm::device::Device` creates a static const `struct drm_driver` filled
with the data from the `drm::drv::Driver` trait implementation of the
actual driver creating the `drm::device::Device`.
Co-developed-by: Asahi Lina
Signed-off-by: Asahi