ATOMIC_LOAD_INT(9)

πŸ“¦ in nixpkgs unstable

πŸ’… ATOMIC_LOAD_INT(9) β€” atomic_load_int, atomic_load_long, atomic_store_int, atomic_store_long

okay bestie, welcome to the Kernel Developer's Manual page for ATOMIC_LOAD_INT(9) and its little friend group ✨ β€” these are the atomic read/write girlies and honestly? they ate.


πŸŽ€ NAME

atomic_load_int, atomic_load_long, atomic_store_long, atomic_store_int β€” atomic read and write memory operations πŸ’–

✨ SYNOPSIS

#include <sys/atomic.h>

unsigned int
atomic_load_int(volatile const unsigned int *p);

unsigned long
atomic_load_long(volatile const unsigned long *p);

void
atomic_store_int(volatile unsigned int *p, unsigned int v);

void
atomic_store_long(volatile unsigned long *p, unsigned long v);

πŸ¦‹ DESCRIPTION

so the atomic_load and atomic_store set of functions? they're literally the interface for atomically performing read or write memory operations β€” and when we say atomically we mean with respect to interrupts and multiple processors in the system. no cap, that's the whole vibe check they're passing. πŸ”₯

The atomic_store functions change the value referenced by the pointer p to the value v. that's it, that's the plot. 🫢

🌸 CONTEXT

atomic_load_int(), atomic_load_long(), atomic_store_int(), and atomic_store_long() can all be called during autoconf, from process context, or from interrupt context. all four of them, every single time, iconic behavior tbh πŸ‘‘

⭐ RETURN VALUES

atomic_load_int and atomic_load_long return the value at p. simple as that, periodt πŸ’…

🧚 SEE ALSO

go give the add/sub girlies some love too πŸ’œ

🌈 HISTORY

The atomic_load and atomic_store functions first appeared in OpenBSD 7.1. a historic moment fr fr πŸŽ€


and that's the whole page bestie!! πŸ“ this slay little number comes to you straight from the Debian edition, dated July 14, 2025, filed under ATOMIC_LOAD_INT(9) β€” mwah 😘 go forth and be atomic ✨

πŸ“¦ where this page comes from
  • nixpkgs unstable: cvs-export
  • πŸ’– girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms