2 .\" Copyright 2014 Garrett D'Amore <garrett@damore.org>
3 .\" Copyright (c) 2001, Sun Microsystems, Inc., All Rights Reserved.
4 .\" Copyright 1989 AT&T
5 .\" 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.
6 .\" 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.
7 .\" 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]
8 .TH INTRO 9S "May 24, 2014"
10 Intro, intro \- introduction to kernel data structures and properties
14 Section 9P describes kernel properties used by device drivers. Section 9S
15 describes the data structures used by drivers to share information between the
16 driver and the kernel. See \fBIntro\fR(9E) for an overview of device driver
20 In Section 9S, reference pages contain the following headings:
25 \fBNAME\fR summarizes the purpose of the structure or property.
31 \fBSYNOPSIS\fR lists the include file that defines the structure or property.
37 \fBINTERFACE\fR \fBLEVEL\fR describes any architecture dependencies.
43 \fBDESCRIPTION\fR provides general information about the structure or property.
49 \fBSTRUCTURE\fR \fBMEMBERS\fR lists all accessible structure members (for
56 \fBSEE\fR \fBALSO\fR gives sources for further information.
60 Of the preceding headings, Section 9P reference pages contain the \fBNAME\fR,
61 \fBDESCRIPTION\fR, and \fBSEE\fR \fBALSO\fR fields.
64 Every driver MUST include <\fBsys/ddi.h\fR> and <\fBsys/sunddi.h\fR>, in that
65 order, and as final entries.
68 The following table summarizes the STREAMS structures described in Section 9S.
80 \fBcopyresp\fR DDI/DKI
84 \fBfmodsw\fR Solaris DDI
86 \fBfree_rtn\fR DDI/DKI
92 \fBmodule_info\fR DDI/DKI
100 \fBqueclass\fR Solaris DDI
104 \fBstreamtab\fR DDI/DKI
106 \fBstroptions\fR DDI/DKI
111 The following table summarizes structures that are not specific to STREAMS I/O.
121 \fBaio_req\fR Solaris DDI
125 \fBcb_ops\fR Solaris DDI
127 \fBddi_device_acc_attr\fR Solaris DDI
129 \fBddi_dma_attr\fR Solaris DDI
131 \fBddi_dma_cookie\fR Solaris DDI
133 \fBddi_dmae_req\fR Solaris x86 DDI
135 \fBddi_idevice_cookie\fR Solaris DDI
137 \fBddi_mapdev_ctl\fR Solaris DDI
139 \fBdevmap_callback_ctl\fR Solaris DDI
141 \fBdev_ops\fR Solaris DDI
145 \fBkstat\fR Solaris DDI
147 \fBkstat_intr\fR Solaris DDI
149 \fBkstat_io\fR Solaris DDI
151 \fBkstat_named\fR Solaris DDI
155 \fBmodldrv\fR Solaris DDI
157 \fBmodlinkage\fR Solaris DDI
159 \fBmodlstrmod\fR Solaris DDI
161 \fBscsi_address\fR Solaris DDI
163 \fBscsi_arq_status\fR Solaris DDI
165 \fBscsi_device\fR Solaris DDI
167 \fBscsi_extended_sense\fR Solaris DDI
169 \fBscsi_hba_tran\fR Solaris DDI
171 \fBscsi_inquiry\fR Solaris DDI
173 \fBscsi_pkt\fR Solaris DDI
175 \fBscsi_status\fR Solaris DDI
187 Do not declare arrays of structures as the size of the structures can change
188 between releases. Rely only on the structure members listed in this chapter and
189 not on unlisted members or the position of a member in a structure.