rol64(9)
πΈ rol64 β the Kernel API Manual situation πΈ
okay bestie, welcome to rol64(9), the tiny little legend tucked inside the Kernel API Manual β¨ she's small, she's specific, and honestly? she ate.
β¨ NAME β¨
rol64 β rotate a 64-bit value left π
lowkey that's the whole personality and honestly it's enough
π¦ SYNOPSIS π¦
here's the vibe check, copy it exactly okurr:
__u64 rol64 (__u64 word , unsigned int shift );
like, that's her. that's the signature. no notes. π₯
π ARGUMENTS π
wordβ the value to rotate, bestie. this is the main character of the whole operation πshiftβ the bits to roll π that's it, that's the assignment
not me having only two arguments to explain π she's efficient, she's unbothered, she's iconic fr fr
π SEE ALSO π
okay so there's a whole friend group and you're gonna want to know all of them, no cap:
the kernel file is ./include/linux/bitops.h and she rolls with:
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_clear_bit(9)__ptr_test_bit(9)
like that's a whole squad and every single one of them is named exactly like that, don't @ me π«Ά
π reminder: I'm being cute but the names above are literal β type them exactly as written, bestie, iykyk.
and that's the page, periodt. this lil gem lives in ./include/linux, dated October 2026, and it's giving "small file, big energy" ππ¦ stay rotating, queen π
π¦ 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