MAX(9F) Kernel Functions for Drivers MAX(9F)
max - return the larger of two integers
#include <sys/ddi.h>
int max(int int1, int int2);
Architecture independent level 1 (DDI/DKI).
int1
The first integer.
int2
The second integer.
The max() function compares two signed integers and returns the
larger of the two.
The larger of the two numbers.
The max() function can be called from user, interrupt, or kernel
context.
min(9F)
Writing Device Drivers
January 16, 2006 MAX(9F)
NAME
max - return the larger of two integers
SYNOPSIS
#include <sys/ddi.h>
int max(int int1, int int2);
INTERFACE LEVEL
Architecture independent level 1 (DDI/DKI).
PARAMETERS
int1
The first integer.
int2
The second integer.
DESCRIPTION
The max() function compares two signed integers and returns the
larger of the two.
RETURN VALUES
The larger of the two numbers.
CONTEXT
The max() function can be called from user, interrupt, or kernel
context.
SEE ALSO
min(9F)
Writing Device Drivers
January 16, 2006 MAX(9F)