[RFC PATCH 0/3] Initial plumbing for implementing DRM connector APIs in Rust
From: Rahul Rameshbabu <hidden>
Date: 2025-08-18 05:04:33
Also in:
dri-devel
Hello, I am working on a drm_connector scoped backlight API in Rust. I have been looking through Hans de Goede's previous efforts on this topic to help guide my design. My hope is to enable backlight control over external displays through DDC or USB Monitor Control Class while also supporting internal panels. In parallel, I would like to improve the driver probing/selection mechanism when there are different candidates for driving a backlight device. This initial RFC is mainly intended to sanity check that the plumbing I have chosen for extending the DRM connector functionality in Rust seems reasonable. I did toss in two doc comment cleanup patches in the mix. If these need to be re-sent individually or split due to the multiple Fixes: tags, do not hesitate to let me know. Thanks, Rahul Rameshbabu Link: https://lore.kernel.org/rust-for-linux/20250808061223.3770-1-sergeantsagara@protonmail.com/ (local) Link: https://binary-eater.github.io/tags/usb-monitor-control/ Link: https://lpc.events/event/16/contributions/1390/attachments/990/1916/kernel-recipes-backlight-2022-16x9.pdf Rahul Rameshbabu (3): rust: drm: fix C header references in doc comments rust: pci: fix incorrect platform references in doc comments rust: drm: Introduce a Connector abstraction drivers/gpu/drm/drm_connector.c | 9 +++ include/drm/drm_connector.h | 20 +++++++ rust/bindings/bindings_helper.h | 1 + rust/kernel/drm/connector.rs | 103 ++++++++++++++++++++++++++++++++ rust/kernel/drm/device.rs | 2 +- rust/kernel/drm/driver.rs | 2 +- rust/kernel/drm/file.rs | 2 +- rust/kernel/drm/gem/mod.rs | 2 +- rust/kernel/drm/ioctl.rs | 2 +- rust/kernel/drm/mod.rs | 2 + rust/kernel/pci.rs | 6 +- 11 files changed, 143 insertions(+), 8 deletions(-) create mode 100644 rust/kernel/drm/connector.rs base-commit: c17b750b3ad9f45f2b6f7e6f7f4679844244f0b9 -- 2.49.0