generic___set_bit(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ generic___set_bit(9) ✨

okay bestie, welcome to the Kernel API Manual πŸ’– this one is called generic___set_bit β€” iconic little function, literally sets a bit in memory πŸŽ€


🌸 NAME 🌸

generic___set_bit β€” set a bit in memory πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

void generic___set_bit (unsigned long nr , volatile unsigned long *addr
);

no cap, that's the whole signature, keep it exactly like that 🫢


πŸŽ€ ARGUMENTS πŸŽ€

  • nr β€” the bit to set ✨
  • addr β€” the address to start counting from πŸ’«

πŸ’… DESCRIPTION πŸ’…

so here's the tea β˜• unlike set_bit, this function is non-atomic and may be reordered. if it's called on the same region of memory simultaneously, the effect may be that only one operation succeeds 😭

that's the whole vibe. lowkey important, highkey worth remembering 🧚


πŸ”₯ SEE ALSO πŸ”₯


bestie, this one is non-atomic and may be reordered β€” do not treat it like a synchronized main-character moment unless you know what you're doing πŸ’€

mwah πŸ’‹ this cutie comes from ./include/asm-generic/bitops, version date October 2026, and the manual page is generic___set_bit(9) πŸŒˆβ­πŸ’œ

πŸ“¦ where this page comes from