Re: [PATCH 1/8] drm: drv: implement __drm_dev_alloc()

2025-03-26 Thread Maxime Ripard
On Wed, 26 Mar 2025 00:54:28 +0100, Danilo Krummrich wrote: > In the Rust DRM device abstraction we need to allocate a struct > drm_device. > > Currently, there are two options, the deprecated drm_dev_alloc() (which > does not support subclassing) and devm_drm_dev_alloc(). The latter > > [ ... ]

[PATCH 1/8] drm: drv: implement __drm_dev_alloc()

2025-03-25 Thread Danilo Krummrich
In the Rust DRM device abstraction we need to allocate a struct drm_device. Currently, there are two options, the deprecated drm_dev_alloc() (which does not support subclassing) and devm_drm_dev_alloc(). The latter supports subclassing, but also manages the initial reference through devres for the