Merge commit '9276b3991ba20d5a5660887ba81b0bc7bed25a0c'
[unleashed.git] / share / man / man9f / biosize.9f
blobb763924b17ddee1eaf400e9cea7ddc263aee7d7a
1 '\" te
2 .\" Copyright (c) 2009 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 BIOSIZE 9F "Nov 20, 1996"
7 .SH NAME
8 biosize \- returns size of a buffer structure
9 .SH SYNOPSIS
10 .LP
11 .nf
12 #include <sys/ddi.h>
13 #include <sys/sunddi.h>
15 \fBsize_t\fR \fBbiosize\fR(void)
16 .fi
18 .SH INTERFACE LEVEL
19 .sp
20 .LP
21 Solaris DDI specific (Solaris DDI).
22 .SH DESCRIPTION
23 .sp
24 .LP
25 The  \fBbiosize()\fR function returns the size in bytes of the \fBbuf\fR(9S)
26 structure. The  \fBbiosize()\fR function is used by drivers in combination with
27 \fBkmem_alloc\fR(9F) and \fBbioinit\fR(9F) to allocate buffer structures
28 embedded in other data structures.
29 .SH CONTEXT
30 .sp
31 .LP
32 The \fBbiosize()\fR function can be called from any context.
33 .SH SEE ALSO
34 .sp
35 .LP
36 \fBbiofini\fR(9F), \fBbioinit\fR(9F), \fBgetrbuf\fR(9F), \fBkmem_alloc\fR(9F),
37 \fBbuf\fR(9S)
38 .sp
39 .LP
40 \fIWriting Device Drivers\fR