min(D3DK) —
.IX \f4min\fP(D3DK)
NAME
min − return the lesser of two integers
SYNOPSIS
#include <sys/ddi.h>
int min(int int1, int int2);
ARGUMENTS
int1, int2The integers to be compared.
DESCRIPTION
min compares two integers and returns the lesser of the 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 lesser 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
max(D3DK)
DDI/DKI