Sun Microsystems, Inc.
spacerspacer
spacer   www.sun.com docs.sun.com | | |  
spacer
black dot
   
A   B   C   D   E   F   G   H   I   J   K   L   M   N   O   P   Q   R   S   T   U   V   W   X   Y   Z
    
 
Data Structures for DriversIntro(9S)


NAME

 Intro, intro - introduction to kernel data structures and properties

DESCRIPTION

 

Section 9P describes kernel properties used by device drivers. Section 9S describes the data structures used by drivers to share information between the driver and the kernel. See Intro(9E) for an overview of device driver interfaces.

In Section 9S, reference pages contain the following headings:

  • NAME summarizes the purpose of the structure or property.
  • SYNOPSIS lists the include file that defines the structure or property.
  • INTERFACE LEVEL describes any architecture dependencies.
  • DESCRIPTION provides general information about the structure or property.
  • STRUCTURE MEMBERS lists all accessible structure members (for Section 9S).
  • SEE ALSO gives sources for further information.

Of the preceding headings, Section 9P reference pages contain the NAME, DESCRIPTION, and SEE ALSO fields.

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

The following table summarizes the STREAMS structures described in Section 9S.
StructureType
copyreqDDI/DKI
copyrespDDI/DKI
databDDI/DKI
fmodswSolaris DDI
free_rtnDDI/DKI
iocblkDDI/DKI
linkblkDDI/DKI
module_infoDDI/DKI
msgbDDI/DKI
qbandDDI/DKI
qinitDDI/DKI
queclassSolaris DDI
queueDDI/DKI
streamtabDDI/DKI
stroptionsDDI/DKI

The following table summarizes structures that are not specific to STREAMS I/O.
StructureType
aio_reqSolaris DDI
bufDDI/DKI
cb_opsSolaris DDI
ddi_device_acc_attrSolaris DDI
ddi_dma_attrSolaris DDI
ddi_dma_cookieSolaris DDI
ddi_dma_lim_sparcSolaris SPARC DDI
ddi_dma_lim_IASolaris IA DDI
ddi_dma_reqSolaris DDI
ddi_dmae_reqSolaris IA DDI
ddi_idevice_cookieSolaris DDI
ddi_mapdev_ctlSolaris DDI
devmap_callback_ctlSolaris DDI
dev_opsSolaris DDI
iovecDDI/DKI
kstatSolaris DDI
kstat_intrSolaris DDI
kstat_ioSolaris DDI
kstat_namedSolaris DDI
mapDDI/DKI
modldrvSolaris DDI
modlinkageSolaris DDI
modlstrmodSolaris DDI
scsi_addressSolaris DDI
scsi_arq_statusSolaris DDI
scsi_deviceSolaris DDI
scsi_extended_senseSolaris DDI
scsi_hba_tranSolaris DDI
scsi_inquirySolaris DDI
scsi_pktSolaris DDI
scsi_statusSolaris DDI
uioDDI/DKI

SEE ALSO

 

Intro(9E)

NOTES

 

Do not declare arrays of structures as the size of the structures can 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.


SunOS 5.9Go To TopLast Changed 15 May 2001

 
      
      
Copyright 2002 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.