xref: /titanic_41/usr/src/man/man9f/ldi_dump.9f (revision bce835f2166e1510cc776830775859ba3e49c1ce)
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_DUMP 9F "Jun 3, 2003"
NAME
ldi_dump - Issue a dump request to a device
SYNOPSIS

#include <sys/sunldi.h>

int ldi_dump(ldi_handle_t lh, caddr_t addr, daddr_t blkno,  int nblk);
PARAMETERS
lh

Layered handle.

addr

Area dump address.

blkno

Block offset to dump memory.

nblk

Number of blocks to dump.

DESCRIPTION

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

RETURN VALUES

The ldi_dump() function returns 0 upon success. If a failure occurs before the request is passed on to the device, the possible return values are shown below. Otherwise any other error number may be returned by the device. EINVAL

Invalid input parameters.

ENOTSUP

Operation is not supported for this device.

CONTEXT

These functions may be called from user or kernel context.