mirror of
https://github.com/ebrandi/FDD-book.git
synced 2026-12-06 00:23:30 +00:00
Organize companion code and materials by book part: part-01/ Foundations part-02/ Kernel & driver fundamentals part-03/ Character & block devices part-04/ Networking & storage part-05/ Buses & advanced topics part-06/ Debugging & performance part-07/ Real-world drivers appendices/ Supplementary material README.md Overview and build instructions
23 lines
844 B
Text
23 lines
844 B
Text
# /boot/loader.conf snippet for the Chapter 24 myfirst driver.
|
|
#
|
|
# Append the lines below to /boot/loader.conf to load myfirst
|
|
# automatically at boot and to set its initial debug mask.
|
|
|
|
# Load the module on boot.
|
|
myfirst_load="YES"
|
|
|
|
# Initial debug mask, applied before the dev.myfirst.<unit>.debug.mask
|
|
# sysctl OID becomes accessible. The bit values are documented in
|
|
# myfirst_debug.h:
|
|
#
|
|
# MYF_DBG_INIT 0x01 probe/attach/detach
|
|
# MYF_DBG_OPEN 0x02 open/close lifecycle
|
|
# MYF_DBG_IO 0x04 read/write paths
|
|
# MYF_DBG_IOCTL 0x08 ioctl handling
|
|
# MYF_DBG_INTR 0x10 interrupt handler
|
|
# MYF_DBG_DMA 0x20 DMA mapping/sync
|
|
# MYF_DBG_PWR 0x40 power-management events
|
|
# MYF_DBG_MEM 0x80 malloc/free trace
|
|
#
|
|
# 0x06 enables OPEN and IO; 0xff enables every defined class.
|
|
hw.myfirst.debug_mask_default="0x06"
|