stmf: avoid set but not used errors
[unleashed.git] / share / man / man9f / ldi_strategy.9f
blob6b420154bf1dcfff306f68f784d8c12542b86179
1 '\" te
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_STRATEGY 9F "Jun 3, 2003"
7 .SH NAME
8 ldi_strategy \- Device strategy request
9 .SH SYNOPSIS
10 .LP
11 .nf
12 #include <sys/sunldi.h>
14 \fBint\fR \fBldi_strategy\fR(\fBldi_handle_t\fR \fIlh\fR, \fB struct buf *\fR\fIbp\fR);
15 .fi
17 .SH PARAMETERS
18 .sp
19 .ne 2
20 .na
21 \fB\fIlh\fR \fR
22 .ad
23 .RS 7n
24 Layered handle.
25 .RE
27 .sp
28 .ne 2
29 .na
30 \fB\fIbp\fR \fR
31 .ad
32 .RS 7n
33 Pointer to the \fBbuf(9S)\fR structure.
34 .RE
36 .SH DESCRIPTION
37 .sp
38 .LP
39 The \fBldi_strategy()\fR function passes a strategy request to the device entry
40 point for the device specified by the layered handle. This operation is
41 supported for block devices.
42 .SH RETURN VALUES
43 .sp
44 .LP
45 The \fBldi_strategy()\fR function returns \fB0\fR if the strategy request has
46 been passed on to the target device. Other possible return values are:
47 .sp
48 .ne 2
49 .na
50 \fBEINVAL\fR
51 .ad
52 .RS 11n
53 Invalid input parameters.
54 .RE
56 .sp
57 .ne 2
58 .na
59 \fBENOTSUP\fR
60 .ad
61 .RS 11n
62 Operation is not supported for this device.
63 .RE
65 .sp
66 .LP
67 Once the request has been passed on to the target devices strategy entry point,
68 any further errors will be reported by \fBbioerror\fR(9F) and
69 \fBbiodone\fR(9F). See the \fBstrategy\fR(9E) entry point for more information.
70 .SH CONTEXT
71 .sp
72 .LP
73 This function may be called from user or kernel context.