__ptr_set_bit(9)
πΈ 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:
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_clear_bit(9),__ptr_test_bit(9)
mwah π β source/version: ./include/linux, dated October 2026. that's the whole page, bestie, bye! π«Ά
π¦ 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