diff options
| author | Asahi Lina <[email protected]> | 2025-04-10 23:55:24 +0000 |
|---|---|---|
| committer | Danilo Krummrich <[email protected]> | 2025-04-24 12:00:13 +0000 |
| commit | 0600032c54b7adc309d334c109374433ce3ab243 (patch) | |
| tree | 9a03e0ae948b43047ff5a1f83552cc6613bc87a9 /rust/helpers | |
| parent | rust: drm: add device abstraction (diff) | |
| download | kernel-0600032c54b7adc309d334c109374433ce3ab243.tar.gz kernel-0600032c54b7adc309d334c109374433ce3ab243.zip | |
rust: drm: add DRM driver registration
Implement the DRM driver `Registration`.
The `Registration` structure is responsible to register and unregister a
DRM driver. It makes use of the `Devres` container in order to allow the
`Registration` to be owned by devres, such that it is automatically
dropped (and the DRM driver unregistered) once the parent device is
unbound.
Signed-off-by: Asahi Lina <[email protected]>
Reviewed-by: Alyssa Rosenzweig <[email protected]>
Reviewed-by: Lyude Paul <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
[ Rework of drm::Registration
* move VTABLE to drm::Device to prevent use-after-free bugs; VTABLE
needs to be bound to the lifetime of drm::Device, not the
drm::Registration
* combine new() and register() to get rid of the registered boolean
* remove file_operations
* move struct drm_device creation to drm::Device
* introduce Devres
* original source archive: https://archive.is/Pl9ys
- Danilo ]
Signed-off-by: Danilo Krummrich <[email protected]>
Diffstat (limited to 'rust/helpers')
0 files changed, 0 insertions, 0 deletions
