[RFC v3 14/33] rust: drm/kms: Add OpaqueConnector and OpaqueConnectorState

Maxime Ripard mripard at kernel.org
Fri Mar 14 12:08:08 UTC 2025


Hi,

On Wed, Mar 05, 2025 at 05:59:30PM -0500, Lyude Paul wrote:
> Since we allow drivers to have multiple implementations of DriverConnector
> and DriverConnectorState (in C, the equivalent of this is having multiple
> structs which embed drm_connector) - there are some situations we will run
> into where it's not possible for us to know the corresponding
> DriverConnector or DriverConnectorState for a given connector. The most
> obvious one is iterating through all connectors on a KMS device.

It's probabyl a bit of a stupid question again, but why can't we just
iterate over dyn Connector / ConnectorState and need an intermediate
structure?

Maxime
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 273 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20250314/937a5549/attachment.sig>


More information about the dri-devel mailing list