Get the latest tech news
Linux 6.18 To Allow Rust And C Code To Use The Same Memory Model
The latest tranche of Rust code ready to go for the upcoming Linux 6.18 kernel is now ready to go and has been queued into a TIP branch ahead of the merge window.
The Rust atomic changes for this next kernel version include support for the generic Linux Kernel Memory Model (LKMM) atomic variables within Rust. explains that this ensures the Rust and C sides are using the same memory model when communicating with each other. The patches for now are in the locking/core branch and barring any objections from Linus Torvalds should in turn appear in Linux 6.18.
Or read this on Phoronix