div64_s64(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… div64_s64(9) β€” the kernel API manual, bestie edition

okay so real quick, the page header situation: this is div64_s64(9) straight out of the Kernel API Manual, and honestly? it's giving "small function, big responsibilities." let's get into it 🫢


✨ NAME ✨

div64_s64 β€” signed 64bit divide with 64bit divisor

like yes, that's the whole vibe. it divides. it's signed. it's 64bit on both sides. slay. πŸ’–


🌸 SYNOPSIS 🌸

s64 div64_s64 (s64 dividend , s64 divisor );

no cap, that's the entire signature. two s64s walk in, one s64 walks out. iconic behavior only.


πŸŽ€ ARGUMENTS πŸŽ€

  • dividend β€” a signed 64bit dividend. this is the one getting chopped up, bestie. it's the main character of this operation ngl πŸ‘‘
  • divisor β€” a signed 64bit divisor. this is the one doing the chopping. very "i'm the moment" of it.

πŸ’€ RETURN πŸ’€

dividend / divisor

literally just the division. that's the whole return value, no plot twist, no secret side quest. the dividend divided by the divisor. periodt. ✨


πŸ¦‹ SEE ALSO πŸ¦‹

okay so this is the friend group, and they're all math64.h girlies πŸ’… the kernel file is ./include/linux/math64.h and here's everyone:

go read those too, they're all lowkey obsessed with rounding and remainders and honestly same. 🌈


ngl there's nothing dangerous on this page, it's literally just a divide. but the whole family above is worth a look if division alone isn't giving you what you need πŸ“

and that's the page, bestie!! πŸ’œ this whole thing lives over in ./include/linux, dated October 2026, so go forth and divide your signed 64bit values with confidence. mwah. πŸ˜­πŸŽ€πŸ§š

πŸ“¦ where this page comes from