'\" te .\" Copyright 1989 AT&T .\" Copyright (c) 2006, Sun Microsystems, Inc., All Rights Reserved .TH min 9F "16 Jan 2006" "SunOS 5.11" "Kernel Functions for Drivers" .SH NAME min \- return the lesser of two integers .SH SYNOPSIS .LP .nf #include \fBint\fR \fBmin\fR(\fBint\fR \fIint1\fR, \fBint\fR \fIint2\fR); .fi .SH INTERFACE LEVEL .sp .LP Architecture independent level 1 (DDI/DKI). .SH PARAMETERS .sp .ne 2 .mk .na \fB\fIint1\fR\fR .ad .RS 8n .rt The first integer. .RE .sp .ne 2 .mk .na \fB\fIint2\fR\fR .ad .RS 8n .rt The second integer. .RE .SH DESCRIPTION .sp .LP The \fBmin()\fR function compares two signed integers and returns the lesser of the two. .SH RETURN VALUES .sp .LP The lesser of the two integers. .SH CONTEXT .sp .LP The \fBmin()\fR function can be called from user, interrupt, or kernel context. .SH SEE ALSO .sp .LP \fBmax\fR(9F) .sp .LP \fIWriting Device Drivers for Oracle Solaris 11.2\fR