Re: [PATCH 0/4] Rust netlink support + use in Rust Binder
From: Andrew Lunn
Date: Sun Mar 08 2026 - 10:13:37 EST
On Sat, Mar 07, 2026 at 10:41:09PM +0000, Alice Ryhl wrote:
> On Sat, Mar 07, 2026 at 10:39:28PM +0100, Andrew Lunn wrote:
> > > > Please no duplication of existing code in Rust.
> > >
> > > The plan is certainly to get rid of C Binder, but it was unfortunately
> > > not possible to get there without a transition period.
> >
> > Dumb question....
> >
> > Why?
>
> The reasons for moving to a Rust implementation are discussed in the
> cover letter [1], and in my 2023 plumbers talk [2].
Ah, so you meant binder itself has be dual implementation for a while.
> No, it sends the same messages. The intent is for Android to move to the
> Rust implementation without userspace being able to tell the difference.
Any reason you cannot use this Rust netlink code with the C binder?
You can then throw away the C netlink code, no code duplication.
Andrew