roundup_u64(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ roundup_u64(9) ✨

okay so bestie, we're in the Kernel API Manual today (section 9, the good stuff) and the star of the show is roundup_u64 β€” the glow-up your u64 didn't know it needed πŸ’…


πŸŽ€ NAME πŸŽ€

roundup_u64 β€” Round up a 64bit value to the next specified 32bit multiple. literally that's her whole job and she ate πŸ”₯


🌸 SYNOPSIS 🌸

u64 roundup_u64 (u64 x , u32 y );

yes bestie that's the whole signature, no cap ✨


πŸ¦‹ ARGUMENTS πŸ¦‹

  • x β€” the value to up 🌱 (yep, "to up", that's what it says, we love a noun that became a verb)
  • y β€” the 32bit multiple to round up to 🎯

πŸ’œ DESCRIPTION πŸ’œ

so here's the vibe: it rounds x to the next multiple of y. main character math, zero drama πŸ’«

and if you're sitting there with a 32bit x like "hiii what about me", the page says: see roundup and the faster round_up for powers of 2 πŸ‘‘ β€” like, those are literally right there, iykyk.


⭐ RETURN ⭐

the rounded up value πŸ’– (that's it, that's the return, she's an overachiever at exactly one thing and we respect it)


🌈 SEE ALSO 🌈

bestie the whole friend group is in the Kernel file ./include/linux/math64.h β€” go say hi 🫢


ok that's the whole page, no notes πŸ“ β€” go round something up and be iconic about it 🧚

sign-off szn: this one lives over at ./include/linux, dated October 2026 πŸ“ mwah, love u, bye πŸ’œ

πŸ“¦ where this page comes from