Re: [PATCH v2 0/3] Inline helpers into Rust without full LTO
From: Andrew Lunn
Date: Mon Mar 23 2026 - 09:38:45 EST
> > If you want netlink on um, arm32, riscv, loongarch you would need a
> > different implementation of the binding?
>
> It doesn't need this feature to build and function. It'll just be a bit slower
> because inlining from C to Rust won't happen.
So it sounds like my understanding is out of date. When the first
Ethernet PHY driver was being merged, Rust could not access inline C
functions. The binding had to replicate the functionality. But you are
saying that Rust can now make use of inline C code, but not actually
inline it? It results in a function call?
What this feature does it actually allows inline C functions to be
inline? So it is just an optimisation?
Andrew