check_mul_overflow(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– check_mul_overflow β€” like, the Kernel API Manual, section 9, bestie πŸ’–

okay so bestie, welcome to check_mul_overflow(9) β€” yes it's a section 9 kernel API page, and yes it's lowkey iconic. pull up a chair, grab your iced coffee, and let's get into it 🫢


✨ NAME ✨

check_mul_overflow β€” does your multiplication and also tells you if it overflowed. like a math bestie who does the work AND the vibe check πŸ’…


🌸 SYNOPSIS 🌸

check_mul_overflow (a , b , d );

that's it. three args. no notes. slay.


πŸŽ€ ARGUMENTS πŸŽ€

  • a β€” the first factor, aka the first number you're multiplying. main character number #1 ✨
  • b β€” the second factor, the other number. main character number #2 ✨
  • d β€” a pointer where the product gets stored. it's giving "put the result here please" πŸ“

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so here's the tea, and it's actually a really good tea:

Returns true on wrap-around, and false otherwise. that's the whole vibe check β€” did the multiplication wrap around or not πŸ”₯

and here's the part that matters: *d holds the results of the attempted multiplication, regardless of whether wrap-around occurred. like, it's gonna write the product either way. it doesn't withhold. it's not petty. it tells you the answer and whether it wrapped. no cap πŸ’€

ngl this is the important bit β€” even if wrap-around happened, *d still got written. don't go assuming *d is untouched just because you got a true back πŸ™ˆ

🌈 SEE ALSO 🌈

real ones know the whole overflow family, and here's the entire crew β€” go say hi πŸ‘‘


and that's the page, bestie! 🧚 this one ships out of ./include/linux and it's dated October 2026 β€” so yeah, mark your calendar, this manual page is literally from the future and it ate πŸ’…πŸ’–

πŸ“¦ where this page comes from