summaryrefslogtreecommitdiff
path: root/usr/src/man/man9f/net_getifname.9f
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/man/man9f/net_getifname.9f')
-rw-r--r--usr/src/man/man9f/net_getifname.9f29
1 files changed, 7 insertions, 22 deletions
diff --git a/usr/src/man/man9f/net_getifname.9f b/usr/src/man/man9f/net_getifname.9f
index c066131336..2c683db17b 100644
--- a/usr/src/man/man9f/net_getifname.9f
+++ b/usr/src/man/man9f/net_getifname.9f
@@ -3,7 +3,7 @@
.\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License.
.\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License.
.\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
-.TH net_getifname 9F "1 May 2008" "SunOS 5.11" "Kernel Functions for Drivers"
+.TH NET_GETIFNAME 9F "May 1, 2008"
.SH NAME
net_getifname \- determine the name given to a network interface
.SH SYNOPSIS
@@ -11,7 +11,7 @@ net_getifname \- determine the name given to a network interface
.nf
#include <sys/neti.h>
-\fBint\fR \fBnet_getifname\fR(\fBconst\fR \fBnet_data_t\fR \fInet\fR, \fBconst\fR \fBphy_if_t\fR \fIifp\fR,
+\fBint\fR \fBnet_getifname\fR(\fBconst\fR \fBnet_data_t\fR \fInet\fR, \fBconst\fR \fBphy_if_t\fR \fIifp\fR,
\fBchar *\fR\fIbuffer\fR, \fBsize_t\fR \fIbuflen\fR);
.fi
@@ -22,46 +22,38 @@ Solaris DDI specific (Solaris DDI).
.SH PARAMETERS
.sp
.ne 2
-.mk
.na
\fB\fInet\fR\fR
.ad
.RS 10n
-.rt
value returned from a successful call to \fBnet_protocol_lookup\fR(9F).
.RE
.sp
.ne 2
-.mk
.na
\fB\fIifp\fR\fR
.ad
.RS 10n
-.rt
value returned from a successful call to \fBnet_phylookup\fR(9F) or
\fBnet_phygetnext\fR(9F).
.RE
.sp
.ne 2
-.mk
.na
\fB\fIbuffer\fR\fR
.ad
.RS 10n
-.rt
pointer to the buffer in which to write the interface name.
.RE
.sp
.ne 2
-.mk
.na
\fB\fIbuflen\fR\fR
.ad
.RS 10n
-.rt
size of the buffer in which to store the interface name.
.RE
@@ -79,34 +71,28 @@ for an example on how to use this function.
The \fBnet_getifname()\fR function returns:
.sp
.ne 2
-.mk
.na
\fB-1\fR
.ad
.RS 6n
-.rt
The network protocol does not support this function.
.RE
.sp
.ne 2
-.mk
.na
\fB0\fR
.ad
.RS 6n
-.rt
Successful completion.
.RE
.sp
.ne 2
-.mk
.na
\fB1\fR
.ad
.RS 6n
-.rt
Unsuccessful.
.RE
@@ -123,13 +109,12 @@ See \fBattributes\fR(5) for descriptions of the following attributes:
.sp
.TS
-tab() box;
-cw(2.75i) |cw(2.75i)
-lw(2.75i) |lw(2.75i)
-.
-ATTRIBUTE TYPEATTRIBUTE VALUE
+box;
+c | c
+l | l .
+ATTRIBUTE TYPE ATTRIBUTE VALUE
_
-Interface StabilityCommitted
+Interface Stability Committed
.TE
.SH SEE ALSO