rol64(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 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:

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