1CLAMP_T(9)                       Driver Basics                      CLAMP_T(9)
2
3
4

NAME

6       clamp_t - return a value clamped to a given range using a given type
7

SYNOPSIS

9       clamp_t(type, val, min, max);
10

ARGUMENTS

12       type
13           the type of variable to use
14
15       val
16           current value
17
18       min
19           minimum allowable value
20
21       max
22           maximum allowable value
23

DESCRIPTION

25       This macro does no typechecking and uses temporary variables of type
26       'type' to make all the comparisons.
27
29Kernel Hackers Manual 3.10         June 2019                        CLAMP_T(9)
Impressum