Re: [PATCH v3 05/27] rust: pci: implement Sync for Device<Bound>
From: Alexandre Courbot
Date: Mon May 18 2026 - 11:01:40 EST
On Sun May 17, 2026 at 9:00 AM JST, Danilo Krummrich wrote:
> Implement Sync for Device<Bound> in addition to Device<Normal>.
>
> Device<Bound> uses the same underlying struct pci_dev as Device<Normal>;
> Bound is a zero-sized type-state marker that does not affect thread
> safety.
>
> This is needed for drivers to store &'bound pci::Device<Bound> in their
> private data while remaining Send.
>
> Signed-off-by: Danilo Krummrich <dakr@xxxxxxxxxx>
Reviewed-by: Alexandre Courbot <acourbot@xxxxxxxxxx>