2 .\" Copyright (c) 2003, 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 LDI_DEVMAP 9F "Jun 3, 2003"
8 ldi_devmap \- Issue a devmap request to a device
12 #include <sys/sunldi.h>
14 \fBint\fR \fBldi_devmap\fR(\fBldi_handle_t\fR \fIlh\fR, \fBdevmap_cookie_t\fR \fIdhp\fR, \fBoffset_t\fR \fIoff\fR,
15 \fBsize_t\fR \fIlen\fR, \fBsize_t *\fR\fImaplen\fR, \fBuint_t\fR \fImodel\fR);
34 Opaque mapping handle used by the system to describe mapping.
43 User offset within the logical device memory at which mapping begins.
52 Mapping length (in bytes).
61 Pointer to length (in bytes) of validated mapping. (Less than or equal to
71 Data model type of current thread.
77 The \fBldi_devmap()\fR function passes an devmap request to the device entry
78 point for the device specified by the layered handle. This operation is
79 supported for character devices.
83 The \fBldi_devmap()\fR function returns \fB0\fR upon success. If a failure
84 occurs before the request is passed to the device, possible return values are
85 shown below. Otherwise any other error number may be returned by the device.
92 Invalid input parameters.
101 Operation is not supported for this device.
107 This function may be called from user or kernel context.