volatile
volatile
Posted Oct 4, 2021 18:50 UTC (Mon) by tialaramex (subscriber, #21167)Parent article: McKenney: So You Want to Rust the Linux Kernel?
This is roughly what Paul and co. have asked for in P1382R1 for C++ which makes sense because, as I said, it's what you'd actually want.
But what jumps out at me is that although Rust provides this intrinsic, which is exactly what you'd want here, Paul apparently proposes that what Rust ought to do instead is wrap the Linux kernel features that try to coerce a C compiler into doing what you want despite the C language standard not promising anything useful. Why? Is it because Paul didn't know these intrinsics already exist?
