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

NAME

6       clamp - return a value clamped to a given range with strict
7       typechecking
8

SYNOPSIS

10       clamp(val, min, max);
11

ARGUMENTS

13       val
14           current value
15
16       min
17           minimum allowable value
18
19       max
20           maximum allowable value
21

DESCRIPTION

23       This macro does strict typechecking of min/max to make sure they are of
24       the same type as val. See the unnecessary pointer comparisons.
25
27Kernel Hackers Manual 2.6.         June 2019                          CLAMP(9)
Impressum