9022 loader.efi: module placement must check memory map
[unleashed.git] / share / man / man9f / bp_mapout.9f
blob2cbb13218ebdcc12c73489655ee7b2b8e4f913d1
1 '\" te
2 .\"  Copyright 1989 AT&T
3 .\"  Copyright (c) 1996, Sun Microsystems, Inc.  All Rights Reserved
4 .\" 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.
5 .\" 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.
6 .\" 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]
7 .TH BP_MAPOUT 9F "Nov 15, 1996"
8 .SH NAME
9 bp_mapout \- deallocate virtual address space
10 .SH SYNOPSIS
11 .LP
12 .nf
13 #include <sys/types.h>
14 #include <sys/buf.h>
18 \fBvoid\fR \fBbp_mapout\fR(\fBstruct buf *\fR\fIbp\fR);
19 .fi
21 .SH INTERFACE LEVEL
22 .sp
23 .LP
24 Architecture independent level 1 (DDI/DKI).
25 .SH PARAMETERS
26 .sp
27 .ne 2
28 .na
29 \fB\fIbp\fR \fR
30 .ad
31 .RS 7n
32 Pointer to the buffer header structure.
33 .RE
35 .SH DESCRIPTION
36 .sp
37 .LP
38 \fBbp_mapout()\fR deallocates system virtual address space allocated by a
39 previous call to  \fBbp_mapin\fR(9F)\fB\&.\fR\fBbp_mapout()\fR should only be
40 called on buffers which have been allocated and are owned by the device driver.
41 It must not be called on buffers  passed to the driver through the
42 \fBstrategy\fR(9E) entry point (for example a filesystem). Because
43 \fBbp_mapin\fR(9F) does not keep a reference count, \fBbp_mapout()\fR will wipe
44 out any kernel mapping that a layer above the device driver might rely on.
45 .SH CONTEXT
46 .sp
47 .LP
48 \fBbp_mapout()\fR can be called from user context only.
49 .SH SEE ALSO
50 .sp
51 .LP
52 \fBstrategy\fR(9E), \fBbp_mapin\fR(9F), \fBbuf\fR(9S)
53 .sp
54 .LP
55 \fIWriting Device Drivers\fR