1CLAMP_T(9) Driver Basics CLAMP_T(9)
23
4
NAME
6clamp_t - return a value clamped to a given range using a given type
7
SYNOPSIS
9clamp_t(type, val, min, max);
10
ARGUMENTS
12type
13the type of variable to use
1415
val
16current value
1718
min
19minimum allowable value
2021
max
22maximum allowable value
23
DESCRIPTION
25This macro does no typechecking and uses temporary variables of type
26'type' to make all the comparisons.
27
COPYRIGHT
29Kernel Hackers Manual 3.10 June 2019 CLAMP_T(9)