Supporting Linux kernel development in Rust
Supporting Linux kernel development in Rust
Posted Sep 8, 2020 5:50 UTC (Tue) by marcH (subscriber, #57642)Parent article: Supporting Linux kernel development in Rust
"Inlining" does not imply "no standalone function". These are of course related yet different things. There is a number of cases where a standalone function is created even when the calls are inlined. Simple example from https://gcc.gnu.org/onlinedocs/gcc/Inline.html :
> The function must also be compiled as usual if the program refers to its address, because that cannot be inlined.
Wouldn't a reference to the address of kmalloc() be simpler than "defining a kmalloc_for_rust() symbol containing an un-inlined version"?