[$] The perils of pinning

Post Syndicated from original https://lwn.net/Articles/907876/

Parts of the Rust language may look familiar to C programmers, but the two
languages differ in fundamental ways. One difference that turns out to be
problematic for kernel programming is the stability of data in memory — or
the lack thereof. A challenging session at the 2022 Kangrejos conference wrestled with
ways to deal with objects that should not be moved behind the programmer’s
back.