Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ intro(9S) — SunOS 5.1

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Intro(9S)

NAME

Intro − introduction to kernel data structures

DESCRIPTION

Section 9S describes the data structures used by drivers to share information between the driver and the kernel. 

In this section, reference pages contain the following headings:

• NAME summarizes the structure’s purpose. 

• SYNOPSIS lists the include file that defines the structure. 

• INTERFACE LEVEL describes any architecture dependencies. 

• DESCRIPTION provides general information about the structure. 

• STRUCTURE MEMBERS lists all accessible structure members. 

• SEE ALSO gives sources for further information. 

Every driver MUST include <sys/ddi.h> and <sys/sunddi.h>, in that order, and last. 

The following table summarizes the STREAMS structures described in this section.  STREAMS structures may be used in either DDI or DKI. 

StructureType databDDI/DKI
free_rtnDDI/DKI
module_infoDDI/DKI
msgbDDI/DKI
qbandDDI/DKI
qinitDDI/DKI
queueDDI/DKI
streamtabDDI/DKI

The following table summarizes structures that are not specific to STREAMS I/O. 

StructureType bufDDI/DKI
cb_opsSPARC DDI
credDDI/DKI
ddi_dma_limSPARC DDI
ddi_dma_reqSPARC DDI
dev_opsSPARC DDI
iovecDDI/DKI
mapDDI/DKI
uioDDI/DKI

NOTES

Do not declare arrays of structures as the size of the structures may change between releases.  Rely only on the structure members listed in this chapter and not on unlisted members or the position of a member in a structure. 

LIST OF COMMANDS

NameAppears on PageDescription
bufbuf(9S)block I/O data transfer structure
cb_opscb_ops(9S)character/block entry points structure
credcred(9S)access credential structure
databdatab(9S)STREAMS message data structure
ddi_dma_cookieddi_dma_cookie(9S)DMA address cookie
ddi_dma_limddi_dma_lim(9S)DMA limits structure
ddi_dma_reqddi_dma_req(9S)DMA Request structure
dev_opsdev_ops(9S)device operations structure
free_rtnfree_rtn(9S)structure specifying driver’s message
freeing routine
ioveciovec(9S)data storage structure for I/O using uio
mapmap(9S)private memory map structure
modldrvmodldrv(9S)linkage structure for loadable drivers
modlinkagemodlinkage(9S)module linkage structure
modlstrmodmodlstrmod(9S)linkage structure for loadable streams modules
module_infomodule_info(9S)STREAMS driver identification and
limit value structure
msgbmsgb(9S)STREAMS message block structure
qbandqband(9S)STREAMS queue flow control information
structure
qinitqinit(9S)STREAMS queue processing procedures structure
queuequeue(9S)STREAMS queue structure
scsi_devicescsi_device(9S)SCSI device structure
scsi_pktscsi_pkt(9S)SCSI packet structure
streamtabstreamtab(9S)STREAMS entity declaration structure
uiouio(9S)scatter/gather I/O request structure

SunOS 5.1  —  Last change: 2 Oct 1992

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026