2 .\" Copyright (c) 1992, Sun Microsystems, Inc.
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 DUMP 9E "Oct 9, 2001"
8 dump \- dump memory to device during system failure
12 #include <sys/types.h>
14 #include <sys/sunddi.h>
18 \fBint\fR \fBdump\fR(\fBdev_t\fR \fIdev\fR, \fBcaddr_t\fR \fIaddr\fR, \fBdaddr_t\fR \fIblkno\fR, \fBint\fR \fInblk\fR);
24 Solaris specific (Solaris DDI). This entry point is \fBrequired\fR. For drivers
25 that do not implement \fBdump()\fR routines, \fBnodev\fR(9F) should be used.
42 Address for the beginning of the area to be dumped.
51 Block offset to dump memory.
60 Number of blocks to dump.
66 \fBdump()\fR is used to dump a portion of virtual address space directly to a
67 device in the case of system failure. It can also be used for checking the
68 state of the kernel during a checkpoint operation. The memory area to be dumped
69 is specified by \fIaddr\fR (base address) and \fInblk\fR (length). It is dumped
70 to the device specified by \fIdev\fR starting at offset \fIblkno\fR. Upon
71 completion \fBdump()\fR returns the status of the transfer.
74 When the system is panicking, the calls of functions scheduled by
75 \fBtimeout\fR(9F) and \fBddi_trigger_softintr\fR(9F) will never occur. Neither
76 can delay(9F) be relied upon, since it is implemented via \fBtimeout()\fR. See
77 \fBddi_in_panic\fR(9F).
80 \fBdump()\fR is called at interrupt priority.
84 \fBdump()\fR returns \fB0\fR on success, or the appropriate error number.
88 \fBcpr\fR(7), \fBnodev\fR(9F)
91 \fIWriting Device Drivers\fR