Re: [PATCH 2/3] device: rust: expand documentation for Device

From: Danilo Krummrich
Date: Mon Jul 21 2025 - 08:13:31 EST


On Mon Jul 21, 2025 at 2:07 PM CEST, Alice Ryhl wrote:
> The connection is that to request an irq you must have a &Device<Bound>,
> so if you can only obtain a &Device<Bound> to a bus device, then that
> means that you can never request an irq for a class device.

As mentioned in my other reply, a class device never owns resources of a "real"
device such as an IRQ.

A USB device, which represents a real device on a bus, is a bus device, in your
example the class device is the input device.