Re: [RFC v3 14/33] rust: drm/kms: Add OpaqueConnector and OpaqueConnectorState
From: Maxime Ripard
Date: Fri Mar 14 2025 - 08:08:24 EST
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
Attachment:
signature.asc
Description: PGP signature