2 .\" Copyright (c) 2007, Sun Microsystems, Inc. All Rights Reserved
3 .\" 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.
4 .\" 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.
5 .\" 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]
6 .TH DLPI_SET_PHYSADDR 3DLPI "Aug 22, 2007"
8 dlpi_set_physaddr \- set physical address using DLPI
12 \fBcc\fR [ \fIflag\fR... ] \fIfile\fR... \fB-ldlpi\fR [ \fIlibrary\fR... ]
15 \fBint\fR \fBdlpi_set_physaddr\fR(\fBdlpi_handle_t\fR \fIdh\fR, \fBuint_t\fR \fItype\fR,
16 \fBconst void *\fR\fIaddrp\fR, \fBsize_t *\fR\fIaddrlen\fR);
22 The \fBdlpi_set_physaddr()\fR function sets the physical address via \fBDLPI\fR
23 handle \fIdh\fR associated with the \fBDLPI\fR link instance. Upon success, the
24 physical address is set to \fIaddrp\fR with a length of \fIaddrlen\fR bytes.
27 In this release, \fItype\fR must be set to \fBDL_CURR_PHYS_ADDR\fR, which sets
28 the current physical address.
32 Upon success, \fBDLPI_SUCCESS\fR is returned. If \fBDL_SYSERR\fR is returned,
33 \fBerrno\fR contains the specific UNIX system error value. Otherwise, a
34 \fBDLPI\fR error value defined in \fB<sys/dlpi.h>\fR or an error value listed
35 in the following section is returned.
40 \fB\fBDLPI_EBADMSG\fR\fR
49 \fB\fBDLPI_EINHANDLE\fR\fR
52 Invalid \fBDLPI\fR handle
58 \fB\fBDLPI_EINVAL\fR\fR
67 \fB\fBDLPI_ETIMEDOUT\fR\fR
70 \fBDLPI\fR operation timed out
76 See \fBattributes\fR(5) for description of the following attributes:
84 ATTRIBUTE TYPE ATTRIBUTE VALUE
86 Interface Stability Committed
94 \fBdlpi_get_physaddr\fR(3DLPI), \fBlibdlpi\fR(3LIB), \fBattributes\fR(5)