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. Opening and Using a Hypothetical VME Device
- Example 4-2. User-Level DMA Access to VME
- 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. Function to Test and Set External Interrupt Pulse Width
- Example 7-1. Hypothetical ULI Program
- Example 8-1. Hypothetical pfxread() entry in a Character/Block Driver
- Example 8-2. pfxpoll() Code for Hypothetical Driver
- Example 8-3. Edited Fragment of flash_map()
- Example 8-4. Hypothetical Call to pollwakeup()
- Example 8-5. Entry Point pfxprint()
- Example 8-6. Uniprocessor Upper-Half Wait Logic
- Example 8-7. Uniprocessor Interrupt Logic
- Example 9-1. LIFO Queue Using Basic Locks
- Example 9-2. Skeleton Code for Use of SV_WAIT
- Example 11-1. Verifying Presence of symmon
- Example 11-2. Setting Kernel putbuf Size
- Example 11-3. Debugging Macros Using cmn_err()
- Example 11-4. More Elaborate Debugging Macro
- Example 11-5. Invoking idbg Interactively
- Example 11-6. Invoking idbg with a Log File
- Example 11-7. Invoking idbg for a Single Command
- Example 12-1. Compiling the Example Driver for a 32-bit Kernel
- Example 12-2. Displaying Simulated Volume Header Using idbg
- Example 12-3. Install Command to Create Device Special File
- Example 12-4. Applying prtvtoc to a RAM Drive of 2 MB
- Example 12-5. Making a Filesystem on a RAM Drive
- Example 12-6. Mounting a RAM Drive Filesystem
- Example 14-1. Comparing pio_badaddr() to pio_badaddr_val()
- Example 14-2. Example VME Character Driver
- Example 15-1. Storing the Adapter Type Number in pfxedtinit()
- Example 15-2. Extracting an Adapter Number From a Minor Device Number
- Example 15-3. Macro to Encapsulate a Call to scsi_alloc()
- Example 16-1. Input Queueing Using Locking Macros
- Example 16-2. Interrupt Handling Using Locking Macros
- Example 16-3. Skeleton ifnet Driver
- Example 17-1. Sketch of EISA Initialization
- Example 17-2. Master File /var/sysgen/rap for RAP-10 Driver
- Example 17-3. Configuration File /var/sysgen/rap.sm for RAP-10 Driver
- Example 17-4. Installation Script for RAP-10 Driver
- Example 17-5. Program to Test RAP-10 Driver
- Example 17-6. Complete EISA Character Driver for RAP-10
- Example 18-1. GIO Driver edtinit() Entry Point
- Example 18-2. Hypothetical PIO Routine for GIO
- Example 18-3. Strategy Code for Hypothetical Scatter/Gather GIO Device
- Example 18-4. Strategy() Code for GIO Device Without Scatter/Gather
- Example 18-5. Disabling SysAD Parity Checking During PIO
- Example 18-6. Complete Driver for Hypothetical GIO Device
- Example 19-1. Testing Pipe Configuration