Re: [PATCH v2 2/5] drm/gem/shmem: Initialize private objects via drm_gem_shmem_init() too

From: Alice Ryhl

Date: Wed Nov 25 2026 - 10:03:26 EST


On Tue, Nov 24, 2026 at 12:37:44PM +0100, Janne Grunau wrote:
> Rust drivers need to initialize private gem objects when importing
> DMA-bufs. As with regular objects the ideal way is to allocate the
> object in Rust and initialize it via the DRM gem shmem helper. Expose
> the `private` to the exported drm_gem_shmem_init() function.
>
> Link: https://lore.kernel.org/rust-for-linux/20261118114102.490384-1-aliceryhl@xxxxxxxxxx/ [1]
> Suggested-by: Alice Ryhl <aliceryhl@xxxxxxxxxx>
> Signed-off-by: Janne Grunau <j@xxxxxxxxxx>

Reviewed-by: Alice Ryhl <aliceryhl@xxxxxxxxxx>