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
1.7 KiB
1.7 KiB
Manual-Page Checklist for Driver Writers
A list of the section 9 manual pages that every FreeBSD driver author
should be comfortable opening. Each line is a page, not a command; run
man 9 <name> to read it.
You do not need to memorise these. You need to know that they exist, so that you can open the right one the moment you need it.
Memory
malloccontigmalloc
Synchronisation
mutexmtx_poolsxrmlockcondvarsemaatomicepochlocklocking
Deferred execution
callouttaskqueuekthreadkproc
Bus and resources
bus_spacebus_dmarmanbus_alloc_resourcebus_release_resourcebus_activate_resourceBUS_SETUP_INTRdevicedevice_get_softcdevice_printfdevclassDEVICE_PROBEDEVICE_ATTACHDEVICE_DETACH
Module declaration
moduleDRIVER_MODULEMODULE_VERSIONMODULE_DEPENDDEV_MODULE
Device nodes
make_devdev_clonedevfs_set_cdevprivdev_refthread
User-space interaction
copyfetchstoreuiopriv
Observability
sysctlsysctl_add_oidsysctl_ctx_initEVENTHANDLERselrecordkqueue
Diagnostics
printfKASSERTktrSDT
How to learn one manual page a day
Reading one manual page per working day is a realistic pace. Over roughly two months, you will have made the full pass above. Start with the families you already use, then broaden outward.
The manual pages on FreeBSD are intentionally short and focused. Reading them is often faster than searching the web, and the results are always up to date with your installed kernel.