Re: C aggregate passing (Rust kernel policy)
From: Linus Torvalds
Date: Thu Feb 27 2025 - 14:17:31 EST
On Thu, 27 Feb 2025 at 10:33, Ralf Jung <post@xxxxxxxx> wrote:
>
> The way you do global flags in Rust is like this:
Note that I was really talking mainly about the unsafe cases, an din
particular when interfacing with C code.
Also, honestly:
> FLAG.store(true, Ordering::SeqCst); // or release/acquire/relaxed
I suspect in reality it would be hidden as accessor functions, or
people just continue to write things in C.
Yes, I know all about the C++ memory ordering. It's not only a
standards mess, it's all very illegible code too.
Linus