max(D3DK) —
.IX \f4max\fP(D3DK)
NAME
max − return the larger of two integers
SYNOPSIS
#include <sys/ddi.h>
int max(int int1, int int2);
ARGUMENTS
int1, int2The integers to be compared.
DESCRIPTION
max compares two integers and returns the larger of two. If the int1 and int2 arguments are not of the specified type the results are undefined.
Also, this interface may be implemented in a way that causes the arguments to be evaluated multiple times, so callers should beware of side effects.
RETURN VALUE
The larger of the two integers.
LEVEL
Base or Interrupt.
NOTES
Does not sleep.
Driver-defined basic locks, read/write locks, and sleep locks may be held across calls to this function.
SEE ALSO
min(D3DK)
DDI/DKI