xref: /titanic_50/usr/src/man/man9f/ldi_strategy.9f (revision 7b07063d906859b2be1e88791f801b3c96e432f6)
te
Copyright (c) 2003, Sun Microsystems, Inc., All Rights Reserved
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]
LDI_STRATEGY 9F "Jun 3, 2003"
NAME
ldi_strategy - Device strategy request
SYNOPSIS

#include <sys/sunldi.h>

int ldi_strategy(ldi_handle_t lh,  struct buf *bp);
PARAMETERS
lh

Layered handle.

bp

Pointer to the buf(9S) structure.

DESCRIPTION

The ldi_strategy() function passes a strategy request to the device entry point for the device specified by the layered handle. This operation is supported for block devices.

RETURN VALUES

The ldi_strategy() function returns 0 if the strategy request has been passed on to the target device. Other possible return values are: EINVAL

Invalid input parameters.

ENOTSUP

Operation is not supported for this device.

Once the request has been passed on to the target devices strategy entry point, any further errors will be reported by bioerror(9F) and biodone(9F). See the strategy(9E) entry point for more information.

CONTEXT

This function may be called from user or kernel context.