clear_bit(9)
π clear_bit(9)
okay bestie, welcome to the Kernel API Manual β yes it's giving official docs but we're gonna make it make sense π«Ά
β¨ NAME β¨
clear_bit β literally just clears a bit in memory, that's the whole vibe π
πΈ SYNOPSIS πΈ
void clear_bit (long nr , volatile unsigned long *addr );
π ARGUMENTS π
nrβ the bit you wanna clear, bestie. that's the one. pick it. πaddrβ the address where you start counting from π¦
β DESCRIPTION β
This one is a relaxed atomic operation β and no, it does not imply any memory barriers. not a single one. zero. none. don't come for me, that's just how it is π
π SEE ALSO π
- kernel file
./include/asm-generic/bitops/instrumented-atomic.h set_bit(9)change_bit(9)test_and_set_bit(9)test_and_clear_bit(9)test_and_change_bit(9)
and that's the whole page, no cap π§π this lil icon came out of ./include/asm-generic/bitops, dated October 2026, and it was clear_bit(9) the entire time. slay, go clear some bits responsibly πβ¨
π¦ 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