volatile
volatile
Posted Oct 4, 2021 19:52 UTC (Mon) by PaulMcKenney (✭ supporter ✭, #9624)In reply to: volatile by tialaramex
Parent article: McKenney: So You Want to Rust the Linux Kernel?
It is because some architectures' implementations of Linux-kernel READ_ONCE() and WRITE_ONCE() are required to do more than just a volatile access, and in some cases this "more" is controlled by a Linux-kernel Kconfig option. Yes, you could duplicate this logic in Rust code, but it might be simpler to just rely on the existing LInux-kernel code, especially to begin with.
Developer's and maintainer's choice, though! ;-)
