umin(9)
π umin(9) π
okay so you're reading the Kernel API Manual bestie, and this page is all about umin β literally just "return minimum of two non-negative values". and there's a lil footnote-style clause right after it: signed types are zero extended to match a larger unsigned type. that's the whole vibe. β¨
πΈ SYNOPSIS πΈ
umin (x , y );
that's it. that's the call. two args, one tiny little winner. π
π¦ ARGUMENTS π¦
xβ first value π«Άyβ second value π«Ά
two lil contestants, one gets crowned. no cap.
π SEE ALSO π
this is the friend group, and they're all iconique:
Kernel file ./include/linux/minmax.h β the home base for this whole squad π
min(9)max(9)umax(9)min3(9)max3(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)
like, the way this is basically a whole minmax friend group and umin is just one member serving looks ππ₯ go read the rest, they all ate.
lowkey reminder: signed types get zero extended to match a larger unsigned type β that's the fine print and it's fr fr part of the deal, don't skip it π
and that's the page! brought to you by ./include/linux, dated October 2026, straight from the Kernel API Manual β umin(9) out. mwah ππβ
π¦ 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