On Tue, 2023-08-15 at 10:49 -0700, Stephen Hemminger wrote: > > > > + __atomic_store_n(&run_once, 0, __ATOMIC_RELAXED); > > return 0; > > > Interesting, other flags don't use atomic. Why here? > > > > And is already set elsewhere?
Looking at the history, this variable used to be an atomic variable. Later, it got replaced with a uint32_t and write is done with __atomic_store_n instead. I followed other examples in the same source code file.