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 10-1. Defining Variables in Master Descriptive File
- 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 13-1. Storing the Adapter Type Number in pfxedtinit()
- Example 13-2. Extracting an Adapter Number From a Minor Device Number
- Example 13-3. Macro to Encapsulate a Call to scsi_alloc()
- Example 14-1. Input Queueing Using Locking Macros
- Example 14-2. Interrupt Handling Using Locking Macros
- Example 14-3. Skeleton ifnet Driver
- Example 15-1. Driver Registration
- Example 15-2. Allocation of PCI PIO Map
- Example 15-3. Reading PCI Configuration Space
- Example 15-4. Setting Up a PCI Interrupt Handler
- Example 15-5. Creating Logical Devices for a PCI Device
- Example 15-6. Retrieving Device Information
- Example 16-1. Testing Pipe Configuration