Re: [PATCH v3 1/2] rust: add abstraction for struct device
From: Greg KH
Date: Tue Jun 18 2024 - 01:32:58 EST
On Tue, Jun 18, 2024 at 07:31:47AM +0200, Greg KH wrote:
> On Mon, Jun 17, 2024 at 10:29:40PM +0200, Danilo Krummrich wrote:
> > Add an (always) reference-counted abstraction for a generic C `struct
> > device`. This abstraction encapsulates existing `struct device` instances
> > and manages its reference count.
> >
> > Subsystems may use this abstraction as a base to abstract subsystem
> > specific device instances based on a generic `struct device`, such as
> > `struct pci_dev`.
> >
> > Co-developed-by: Wedson Almeida Filho <wedsonaf@xxxxxxxxx>
> > Signed-off-by: Wedson Almeida Filho <wedsonaf@xxxxxxxxx>
> > Signed-off-by: Danilo Krummrich <dakr@xxxxxxxxxx>
> > ---
> > rust/helpers.c | 1 +
> > rust/kernel/device.rs | 102 ++++++++++++++++++++++++++++++++++++++++++
> > rust/kernel/lib.rs | 1 +
> > 3 files changed, 104 insertions(+)
> > create mode 100644 rust/kernel/device.rs
>
> Acked-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>
>
Wait, I should just take this in my driver-core tree, right? Any
objections for me taking both of these there now for 6.11-rc1 inclusion?
thanks,
greg k-h