__ptr_clear_bit(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… __ptr_clear_bit(9) β€” Kernel API Manual πŸ’…

okay so bestie, this page is from the Kernel API Manual, and it's literally about clearing a bit in a pointer's value. lowkey iconic, highkey specific. ✨

πŸŽ€ NAME πŸŽ€

__ptr_clear_bit β€” clear bit in a pointer's value. That's the vibe: one chosen bit gets cleared inside a pointer's value. 🫢

✨ SYNOPSIS ✨

__ptr_clear_bit (nr , addr );

🌸 ARGUMENTS 🌸

  • nr β€” the bit to clear. yes, that exact bit. 🎯
  • addr β€” the address of the pointer variable. exactly that. πŸ’–

πŸ¦‹ EXAMPLE πŸ¦‹

void *p = foo; __ptr_clear_bit(bit, p);

that's the example. one line, main character energy, no notes. πŸ’…

πŸ‘‘ SEE ALSO πŸ‘‘

Kernel file ./include/linux/bitops.h, plus this whole squad of references: rol64(9), ror64(9), rol32(9), ror32(9), rol16(9), ror16(9), rol8(9), ror8(9), sign_extend32(9), sign_extend64(9), get_count_order_long(9), parity8(9), __ffs64(9), fns(9), assign_bit(9), __ptr_set_bit(9), __ptr_test_bit(9). go read the whole group chat, iykyk 🌈


cute sign-off: this page lives in ./include/linux, and the date on it is October 2026. bye bestie, go clear that bit responsibly πŸ’œβœ¨

πŸ“¦ where this page comes from