List of Examples

| Table of Contents | List of Figures | List of Examples | List of Tables |

Example 2-1. Testing the Hardware Inventory in a Shell Script
Example 2-2. Function Returning Type Code for CPU Module
Example 4-1. PCI Configuration Space Dump
Example 5-1. Testing the Generic SCSI Configuration
Example 5-2. Code of the testunitread00() Function
Example 5-3. Program That Uses dslib Functions
Example 6-1. Challenge Function to Test and Set External Interrupt Pulse Width
Example 7-1. Compiling Driver Prefix as a Macro
Example 7-2. Entry Point Name Macros
Example 7-3. Hypothetical pfxread() entry in a Character/Block Driver
Example 7-4. pfxpoll() Code for Hypothetical Driver
Example 7-5. Edited Fragment of flash_map()
Example 7-6. Hypothetical Call to pollwakeup()
Example 7-7. Entry Point pfxprint()
Example 7-8. Conditional Choice of Mutual Exclusion Lock Type
Example 7-9. Uniprocessor Upper-Half Wait Logic
Example 8-1. Typical Code to Get Device Info
Example 8-2. Hypothetical Code for a Single Vertex
Example 8-3. Hypothetical Code for Multiple Vertexes
Example 8-4. LIFO Queue Using Basic Locks
Example 8-5. Skeleton Code for Use of SV_WAIT
Example 8-6. Creation and Operation of a Typical System Thread
Example 8-7. XTHREAD FLOAT Entry
Example 8-8. XTHREAD CPU Entry
Example 9-1. Defining Variables in Master Descriptive File
Example 10-1. Verifying Presence of symmon
Example 10-2. Debugging Macros Using cmn_err()
Example 10-3. Invoking idbg Interactively
Example 10-4. Invoking idbg with a Log File
Example 11-1. Startup Messages from snoop Driver
Example 11-2. Driver Administration Statement in
Example 11-3. Typical Output of snoop Driver Unit Test
Example 12-1. Hypothetical VME Configuration File
Example 13-1. Adding a Vertex to the Hardware Graph
Example 13-2. Sample VME Driver
Example 14-1. Comparing pio_badaddr() to pio_badaddr_val()
Example 15-1. Comparing pio_badaddr() to pio_badaddr_val()
Example 15-2. Example VME Character Driver
Example 17-1. Skeleton ifnet Driver
Example 18-1. Sketch of EISA Initialization
Example 18-2. Master File /var/sysgen/rap for RAP-10 Driver
Example 18-3. Configuration File /var/sysgen/ for RAP-10 Driver
Example 18-4. Installation Script for RAP-10 Driver
Example 18-5. Program to Test RAP-10 Driver
Example 18-6. Complete EISA Character Driver for RAP-10
Example 19-1. GIO Driver edtinit() Entry Point
Example 19-2. Hypothetical PIO Routine for GIO
Example 19-3. Strategy Code for Hypothetical Scatter/Gather GIO Device
Example 19-4. Strategy() Code for GIO Device Without Scatter/Gather
Example 19-5. Disabling SysAD Parity Checking During PIO
Example 19-6. Complete Driver for Hypothetical GIO Device
Example 20-1. Declaration of Memory Copy of Configuration Space
Example 21-1. Driver Registration
Example 21-2. Allocation of PCI PIO Map
Example 21-3. Function to Read Using a Map
Example 21-4. Configuration Access Macros
Example 21-5. Reading PCI Configuration Space
Example 21-6. Non-O2 PCI PIO Code Example
Example 21-7. O2 PCI PIO Code Example
Example 21-8. Setting Up a PCI Interrupt Handler
Example 21-9. Obtaining Bus Information
Example 22-1. Testing Pipe Configuration