div64_u64(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… div64_u64(9)

okay so bestie, welcome to the Kernel API Manual β€” yes, the kernel has man pages, and yes, this one is about dividing a 64-bit number by another 64-bit number. glamorous? no. essential? absolutely. let's get into it ✨


🌸 NAME

div64_u64 β€” unsigned 64bit divide with 64bit divisor

like, the whole personality of this function is "I divide a u64 by a u64 and I don't do signed math, tyvm" πŸŽ€


✨ SYNOPSIS

u64 div64_u64 (u64 dividend , u64 divisor );

that's it. that's the whole function. two args in, one u64 out. iconic behavior honestly 🫢


🧚 ARGUMENTS

  • dividend β€” unsigned 64bit dividend. this is the number getting chopped up, the main character of the operation πŸ‘‘
  • divisor β€” unsigned 64bit divisor. this is the number doing the chopping. the supporting role that lowkey runs the whole thing πŸ”₯

🌈 RETURN

dividend / divisor

fr fr, it just hands you back the quotient. no cap, no surprises, no extra credit πŸ’€


πŸ¦‹ SEE ALSO

first up, the filing cabinet it lives in: Kernel file ./include/linux/math64.h

and then the whole friend group:

if you need remainders, signed variants, or rounding macros β€” they're all right there bestie, go say hi πŸ’–


ngl this one's a short page, but that's the vibe: one function, unsigned, 64 by 64, done. no drama, only division 🌸

and that's a wrap!! this page shipped from ./include/linux back in October 2026, and it's literally titled div64_u64(9) β€” mwah, slay, go divide something πŸ’…πŸ’œ

πŸ“¦ where this page comes from