table of contents
other versions
CLAMP_T(9) | Driver Basics | CLAMP_T(9) |
NAME¶
clamp_t - return a value clamped to a given range using a given type
SYNOPSIS¶
clamp_t(type, val, lo, hi);
ARGUMENTS¶
type
the type of variable to use
val
current value
lo
minimum allowable value
hi
maximum allowable value
DESCRIPTION¶
This macro does no typechecking and uses temporary variables of type 'type' to make all the comparisons.
COPYRIGHT¶
January 2017 | Kernel Hackers Manual 4.8. |