___clear_bit(9)
___clear_bit π
π NAME π
okay so bestie, this is ___clear_bit(9) from the Kernel API Manual, and it's lowkey iconic: it clears a bit in memory. no cap, that's the whole main character energy. β¨
πΈ SYNOPSIS πΈ
here's the signature fr fr β copy it exactly, no freelance editing:
void ___clear_bit (unsigned long nr , volatile unsigned long *addr );
π ARGUMENTS π
nrβ the bit to clear πaddrβ the address to start counting from π§
π¦ DESCRIPTION π¦
Unlike clear_bit, this function is non-atomic. π¨ and that's not a vibe check you can skip: if it is called on the same region of memory concurrently, the effect may be that only one operation succeeds. periodt. π
π¨ non-atomic caveat: concurrent calls on the same region can mean only one operation succeeds. keep that in mind, bestie β it's giving βnot a group project.β π
π SEE ALSO π
- Kernel file
./include/asm-generic/bitops/instrumented-non-atomic.h ___set_bit(9)___change_bit(9)___test_and_set_bit(9)___test_and_clear_bit(9)___test_and_change_bit(9)_test_bit(9)_test_bit_acquire(9)
mwah π source/version: ./include/asm-generic/bitops; date: October 2026; page: ___clear_bit(9) β bye bestie, go clear that bit π«Ά
π¦ 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