![](https://csdnimg.cn/release/download_crawler_static/87958546/bg14.jpg)
Examples
EXAMPLE 99
Module Initialization for SCSI HBA .................................................. 362
EXAMPLE 100
HBA Driver Initialization of a SCSI Packet Structure ........................... 372
EXAMPLE 101
HBA Driver Allocation of DMA Resources ........................................ 375
EXAMPLE 102
DMA Resource Reallocation for HBA Drivers .................................... 377
EXAMPLE 103
HBA Driver tran_destroy_pkt(9E) Entry Point ................................. 379
EXAMPLE 104
HBA Driver tran_sync_pkt(9E) Entry Point ...................................... 380
EXAMPLE 105
HBA Driver tran_dmafree(9E) Entry Point ........................................ 380
EXAMPLE 106
HBA Driver tran_start(9E) Entry Point ........................................... 381
EXAMPLE 107
HBA Driver Interrupt Handler .......................................................... 384
EXAMPLE 108
HBA Driver tran_getcap(9E) Entry Point ......................................... 388
EXAMPLE 109
HBA Driver tran_setcap(9E) Entry Point ......................................... 391
EXAMPLE 110
HBA Driver tran_reset_notify(9E) Entry Point ................................ 395
EXAMPLE 111
The mac_init_ops() and mac_fini_ops() Functions ........................... 403
EXAMPLE 112
The mac_alloc(), mac_register(), and mac_free() Functions and
mac_register Structure .................................................................. 404
EXAMPLE 113
The mac_unregister() Function ...................................................... 405
EXAMPLE 114
The mac_callbacks Structure ........................................................... 406
EXAMPLE 115
The mc_getcapab() Entry Point ....................................................... 407
EXAMPLE 116
The mc_tx() and mri_tx() Entry Point ............................................. 415
EXAMPLE 117
The mc_getstat() Entry Point ......................................................... 420
EXAMPLE 118
USB Mouse Compatible Device Names ............................................. 455
EXAMPLE 119
Compatible Device Names Shown by the Print Configuration
Command ..................................................................................... 455
EXAMPLE 120
USB Audio Compatible Device Names .............................................. 457
EXAMPLE 121
USB Video Interface Association Compatible Names ............................ 458
EXAMPLE 122
Setting Device Configuration Parameters ............................................ 494
EXAMPLE 123
SR-IOV pci_param_get(9F) Routine ................................................. 498
EXAMPLE 124
Setting input-device and output-device With Boot PROM
Commands .................................................................................... 539
EXAMPLE 125
Setting input-device and output-device With the eeprom Command ..... 539
EXAMPLE 126
Using modinfo to Confirm a Loaded Driver ........................................ 541
EXAMPLE 127
Recovering a Damaged Device Directory ........................................... 545
EXAMPLE 128
Setting Standard Breakpoints in kmdb ................................................. 548
EXAMPLE 129
Setting Deferred Breakpoints in kmdb ................................................. 548
EXAMPLE 130
Invoking mdb on a Crash Dump ........................................................ 551
EXAMPLE 131
Invoking mdb on a Running Kernel .................................................... 551
20 Writing Device Drivers for Oracle Solaris 11.3 • March 2019