Sun Microsystems, Inc.
spacerspacer
spacer www.sun.com docs.sun.com |
spacer
black dot
 
 
   
 

STREAMS Programming Guide

 
 
 
Copyright
  Preface
  Part I Application Programming Interface
  1.  Overview of STREAMS
What Is STREAMS?
STREAMS Definitions
Stream as a Data Path
Stream Head
STREAMS Module
STREAMS Device Driver
STREAMS Data
Message Queues
Communicating With a STREAMS Device
STREAMS Multiplexing
STREAMS Polling
Message Transfer Flow Control
When to Use STREAMS
How STREAMS Works--Application Interface
Opening a Stream
Closing a Stream
Controlling Data Flow
Simple Stream Example
How STREAMS Works at the Kernel Level
Creating the Stream Head
Message Processing
Structure of a STREAMS Device Driver
Message Components
Message Queueing Priority
Structure of a Message Queue
Configuring Multiplexed Streams
Multithreading the Kernel
Service Interfaces
Manipulating Modules
Protocol Portability
Protocol Substitution
Protocol Migration
Module Reusability
  2.  STREAMS Application-Level Components
  3.  STREAMS Application-Level Mechanisms
  4.  Application Access to the STREAMS Driver and Module Interfaces
  5.  STREAMS Administration
  6.  Pipes and Queues
  Part II Kernel Interface
  7.  STREAMS Framework - Kernel Level
Overview of Streams in Kernel Space
Stream Head
Kernel-Level Messages
Message Types
Message Structure
Message Linkage
Queued Messages
Shared Data
Sending and Receiving Messages
Message Queues and Message Priority
Message Queues
queue(9S)Structure
Using Queue Information
Entry Points
open Routine
close Routine
put Procedure
Queue service Procedure
qband Structure
Message Processing Procedures
Flow Control in Service Procedures
  8.  STREAMS Kernel-Level Mechanisms
  9.  STREAMS Drivers
  10.  STREAMS Modules
  11.  Configuring STREAMS Drivers and Modules
  12.  Multithreaded STREAMS
  13.  STREAMS Multiplex Drivers
  Part III Advanced Topics
  14.  Debugging STREAMS-based Applications
Kernel Debug Printing
STREAMS Error and Trace Logging
Kernel Examination Tools
crash Command
adb Command
kadb Command
  Part IV Appendixes
  A.  Message Types
  B.  Kernel Utility Interface Summary
  C.  STREAMS-Based Terminal Subsystem
  D.  STREAMS FAQ
  Glossary
  Index