What is Nostr?
LWN.net (RSS Feed) /
npub1y53…9tux
2024-10-11 13:56:48

LWN.net (RSS Feed) on Nostr: [$] FFI type mismatches in Rust for Linux At Kangrejos, Gary Guo wanted to discuss ...

[$] FFI type mismatches in Rust for Linux


At Kangrejos, Gary Guo wanted to discuss three problems with the way
Rust and C code in the kernel interact: mismatched types, too many type casts,
and the overhead of helper functions. To fix the first two problems, Guo proposed
changing the way the kernel maps C types into Rust types. The last problem was a
bit trickier, but he has a clever workaround for that, based on tricking
the compiler into inlining the helper functions across language boundaries.


https://lwn.net/Articles/993163/
Author Public Key
npub1y535he37cx4z855x3ded2r5et624klsemav6rg2vlm3ex0j0llzszg9tux