__ptr_set_bit(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 NAME 🌸

okay so this page is __ptr_set_bit from the Kernel API Manual, section 9 β€” and the vibe is literally right there in the name. __ptr_set_bit β€” set bit in a pointer's value. no cap, that's the whole main-character job. πŸ’…


✨ SYNOPSIS ✨

the synopsis is giving exactly this, bestie:

__ptr_set_bit (nr , addr );

πŸŽ€ ARGUMENTS πŸŽ€

  • nr β€” the bit to set. like, the specific bit you're setting, iykyk. ✨
  • addr β€” the address of the pointer variable. fr fr, that's where the pointer variable lives. 🫢

πŸ’… EXAMPLE πŸ’…

obsessed with a tiny example, so here it is:

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

πŸ”₯ SEE ALSO πŸ”₯

go peek at the kernel file ./include/linux/bitops.h and this whole iconic squad of pages:


mwah πŸ’‹ β€” source/version: ./include/linux, dated October 2026. that's the whole page, bestie, bye! 🫢

πŸ“¦ where this page comes from