volatile
volatile
Posted Oct 8, 2021 19:24 UTC (Fri) by tialaramex (subscriber, #21167)In reply to: volatile by PaulMcKenney
Parent article: McKenney: So You Want to Rust the Linux Kernel?
So, if I'm not misunderstanding you need acquire-release semantics (you don't need to ask for them on x86 because x86 always has acquire-release semantics), that's what all of these cases seem to be doing.
Because x86 doesn't care, I don't actually know and it wouldn't surprise me if the existing volatile intrinsics already have acquire-release on every platform. But even if not it does still feel like this makes more sense as a (new) intrinsic than trying to call into C every time.
