generic___set_bit(9)
β¨ 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 π₯
- Kernel file
./include/asm-generic/bitops/generic-non-atomic.h generic___change_bit(9)generic___test_and_set_bit(9)generic___test_and_clear_bit(9)generic_test_bit(9)generic_test_bit_acquire(9)const_test_bit(9)
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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms