Re: [PATCH 0/3] rust: miscdevice: Add additional data to MiscDeviceRegistration

From: Greg Kroah-Hartman
Date: Mon Jan 20 2025 - 00:47:15 EST


On Sun, Jan 19, 2025 at 11:11:12PM +0100, Christian Schrefl wrote:
> This set is based on Greg's driver-core-next tree.
>
> Currently there is no good way to pass arbitrary data from the driver to
> a miscdevice or to share data between individual handles to a miscdevice in rust.

Why would you want to do this? A misc device instance should be "self
contained" with the needed stuff to make it work.

Do you have an example of where this is needed as I can't figure out the
goal here, sorry.

thanks,

greg k-h