max3(9)
β¨ max3(9) β¨
okay so bestie, welcome to the kernel API manual π
this little cutie lives in the max3(9) corner of the Kernel API Manual and honestly? she's giving "small but iconic" π
πΈ NAME πΈ
max3 β return maximum of three values π
like, you give her three things and she hands you back the biggest one. no cap, that's the whole vibe. β
π¦ SYNOPSIS π¦
max3 (x , y , z );
literally the whole call, right there. copy it exactly, she's picky about her commas π
π ARGUMENTS π
xβ first value πyβ second value π§zβ third value π
three besties walk in, one max value walks out. main character energy only. π
π«Ά SEE ALSO π«Ά
okay this section is a whole friend group, not me listing them all out π and yes, they're all hanging out in the kernel file ./include/linux/minmax.h β go say hi:
min(9)max(9)umin(9)umax(9)min3(9)min_t(9)max_t(9)min_not_zero(9)clamp(9)clamp_t(9)clamp_val(9)min_array(9)max_array(9)in_range(9)swap(9)
every single one of them, no skips, the full squad β¨
and that's the page bestie π brought to you from ./include/linux, dated October 2026, filed under max3(9) β mwah, go forth and find your maximum ππ
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms