mirror of
https://github.com/ebrandi/FDD-book.git
synced 2026-12-06 00:23:30 +00:00
Add ACKNOWLEDGMENTS.md and some small fixes
This commit is contained in:
parent
42a979a40e
commit
00653fba13
11 changed files with 80 additions and 54 deletions
79
ACKNOWLEDGMENTS.md
Normal file
79
ACKNOWLEDGMENTS.md
Normal file
|
|
@ -0,0 +1,79 @@
|
|||
# Acknowledgments and Credits
|
||||
|
||||
*FreeBSD Device Drivers: From First Steps to Kernel Mastery* would not exist in its current form without a long list of free and open tools, communities, and projects. The author is deeply grateful to everyone who builds and maintains them. This page is a thank you note to the people and projects that make writing, producing, and distributing this book possible.
|
||||
|
||||
If anything on this list is missing or misattributed, please open an issue at https://github.com/ebrandi/FDD-book/issues and it will be corrected.
|
||||
|
||||
## Writing and Authoring
|
||||
|
||||
**Markdown.** The entire manuscript is written in plain Markdown files. Markdown is simple, portable, diff friendly, and ages well. Thank you to John Gruber for the original specification and to the broader community behind CommonMark and GitHub Flavored Markdown, which together form the de facto standard used throughout this project.
|
||||
|
||||
**Typora.** Most of the day to day writing and revision happens in Typora (https://typora.io/), a live preview Markdown editor that keeps the prose readable while still writing raw Markdown on disk. Its distraction free layout, table editor, and code block handling make long form technical writing noticeably more pleasant.
|
||||
|
||||
**Visual Studio Code.** Used occasionally for heavier file wrangling, bulk edits, and working with the companion example tree. Thank you to Microsoft and to the many extension authors in the VS Code ecosystem.
|
||||
|
||||
## Version Control and Collaboration
|
||||
|
||||
**Git.** Every chapter, appendix, example, and draft lives in a Git repository. Git makes it safe to experiment, to rewrite entire sections, and to recover from mistakes. Thank you to Linus Torvalds and the many maintainers who keep Git fast, reliable, and universally available.
|
||||
|
||||
**GitHub.** The project is hosted at https://github.com/ebrandi/FDD-book and uses GitHub for source hosting, issue tracking, pull requests, and discussions. GitHub is also the home of many of the upstream tools listed below, which makes it a practical single stop for collaboration.
|
||||
|
||||
## Book Production Toolchain
|
||||
|
||||
**Pandoc.** The central tool that turns the Markdown manuscript into PDF, EPUB, and HTML5. Pandoc (https://pandoc.org/) is the backbone of the build system. Thank you to John MacFarlane and every Pandoc contributor for producing such a capable, well documented, and reliable converter.
|
||||
|
||||
**Eisvogel template.** The polished PDF layout is produced using the Eisvogel Pandoc LaTeX template by Pascal Wagler (https://github.com/Wandmalfarbe/pandoc-latex-template). The title page styling, book structured chapters, code block formatting, and general look and feel all come from this template. The project is distributed under a permissive license and has been a pleasure to work with.
|
||||
|
||||
**TeX Live and XeLaTeX.** Behind Eisvogel sits a complete TeX Live distribution, with XeLaTeX as the engine used by the build. Thank you to the TeX Users Group, the TeX Live maintainers, and every package author whose work gets pulled in during a full build. Special thanks to Donald Knuth, Leslie Lamport, and the decades of contributors who built and refined TeX and LaTeX.
|
||||
|
||||
**LaTeX packages.** The build pulls in, among others, graphicx, fontspec, unicode-math, listings, and fvextra. Each of these is maintained by volunteer package authors, and the book benefits directly from their work.
|
||||
|
||||
**Pandoc default HTML template and CSS.** The HTML5 build relies on Pandoc's default standalone template and stylesheet, which produce a clean, readable single file output with embedded resources.
|
||||
|
||||
**Tango syntax highlighting style.** Code samples are highlighted using Pandoc's built in Tango style, which is tuned for C and shell code and remains legible in both PDF and HTML5 output.
|
||||
|
||||
## Fonts and Typography
|
||||
|
||||
**Liberation fonts.** Liberation Mono is used throughout the book for code blocks, inline code, and verbatim text. Thank you to Red Hat and the Liberation font authors for releasing these fonts under a free license.
|
||||
|
||||
**DejaVu fonts.** Used as a fallback for extended Unicode coverage, especially for symbols and diagrams.
|
||||
|
||||
**Latin Modern Math.** Provides mathematical glyphs for the PDF build.
|
||||
|
||||
**Microsoft core fonts.** Times New Roman and Arial are used for the main body text and headings in the PDF. Thank you to the authors of these fonts and to the packaging work that makes them available on Linux systems.
|
||||
|
||||
**Noto and Ubuntu font families.** Occasionally used for broader language and glyph coverage.
|
||||
|
||||
**Fontconfig.** Keeps the font stack on the build machine consistent and discoverable.
|
||||
|
||||
## Supporting Utilities
|
||||
|
||||
**Ghostscript.** Used indirectly by the PDF toolchain for various post processing steps.
|
||||
|
||||
**poppler utils.** Handy for inspecting generated PDFs during troubleshooting.
|
||||
|
||||
**ImageMagick.** Used for occasional image preparation and conversion tasks during manuscript production.
|
||||
|
||||
**cabextract.** Used when preparing the Microsoft core fonts on build machines that do not already have them installed.
|
||||
|
||||
**GNU Bash, coreutils, and standard Unix tools.** The build script is a Bash script, and it relies on the usual cast of small, sharp Unix utilities. Thank you to the GNU project, to the many POSIX tool maintainers, and to everyone who keeps this foundation healthy.
|
||||
|
||||
## Platform and Environment
|
||||
|
||||
**FreeBSD.** The subject of the book and its deepest source of inspiration. Thank you to the FreeBSD Project, its core team, its committers, its documentation team, and the wider community of users and contributors. Every chapter is grounded in the real FreeBSD source tree, and every accurate claim in the book reflects the quality of that source.
|
||||
|
||||
**FreeBSD documentation.** The Handbook, the manual pages, the Architecture Handbook, and the many committer notes were consistently useful for verification, terminology, and context. Thank you to the FreeBSD Documentation Project and to every author who has contributed to them over the years.
|
||||
|
||||
**Ubuntu and Windows Subsystem for Linux.** The author's working environment is a Windows laptop running WSL with Ubuntu, which is where the build toolchain is installed and where the PDF, EPUB, and HTML5 outputs are generated. Thank you to Canonical for Ubuntu and to Microsoft for WSL, which together make this a practical setup for writing a book about an entirely different operating system.
|
||||
|
||||
## Communities and Readers
|
||||
|
||||
**The FreeBSD community.** Mailing lists, forums, IRC and Matrix channels, and the BSDCan, EuroBSDCon, and AsiaBSDCon communities have all contributed, directly or indirectly, to the understanding reflected in these pages.
|
||||
|
||||
**Reviewers, early readers, and contributors.** Everyone who filed an issue, suggested a correction, proposed an example, reviewed a chapter, or translated a section has shaped the final text. Their names, where known, appear in the README and in the project's contribution history.
|
||||
|
||||
**You, the reader.** The book is written for you. Thank you for picking it up and for giving this material the time it takes to read carefully. Every question, correction, and improvement suggestion helps the next reader and is genuinely appreciated.
|
||||
|
||||
## Licensing and Responsibility
|
||||
|
||||
The book content itself is distributed under the terms in the repository's `LICENSE` file. Each third party tool, template, font, and package listed above retains its own license and copyright. None of the above projects endorse this book, and any errors are the responsibility of the author.
|
||||
|
|
@ -4123,12 +4123,3 @@ Keep the discipline in Part 4. Hardware introduces new primitives (interrupt han
|
|||
The cost of the discipline is a small amount of extra work per chapter. The benefit is that the driver, at whatever stage of development, is always shippable. You can hand it to a colleague, and it will work. You can put it aside for six months, come back, and still understand what it does. You can add one more feature without fearing that something unrelated will break.
|
||||
|
||||
That is the ultimate payoff of Part 3. Not just primitives; not just patterns; a working discipline.
|
||||
|
||||
Part 4 begins now.
|
||||
|
||||
Chapter 15 ends here. The driver is at v0.9-coordination. Part 4 opens with Chapter 16.
|
||||
|
||||
|
||||
---
|
||||
|
||||
_End of Chapter 15._
|
||||
|
|
|
|||
|
|
@ -4069,12 +4069,3 @@ When a driver misbehaves, the bug is often in a small set of recurring categorie
|
|||
**Fix**: Review detach ordering; drain all callouts and tasks before freeing `regs_buf`.
|
||||
|
||||
Each of these bugs has a short diagnostic path and a well-defined fix. Keeping the list nearby during development catches most issues on first contact.
|
||||
|
||||
|
||||
|
||||
---
|
||||
|
||||
_End of Chapter 16._
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -4017,12 +4017,3 @@ For Chapter 17 the property that matters is protocol correctness: does the drive
|
|||
For later chapters and for your own future work, the properties that matter may be different. A performance test needs a simulation that preserves throughput behaviour. A power test needs a simulation that preserves idle and active states. A security test needs a simulation that can produce adversarial inputs.
|
||||
|
||||
The skill Chapter 17 teaches is not "how to simulate this particular device". It is "how to identify what a simulation must preserve, and how to build one that preserves it". That skill is transferable, and it is the skill that will serve you across every driver you write.
|
||||
|
||||
|
||||
|
||||
---
|
||||
|
||||
_End of Chapter 17._
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -4115,10 +4115,3 @@ A short glossary for readers who want a compact reminder of Chapter 18's vocabul
|
|||
**Subvendor / subsystem ID**: a second-level identification tuple that refines the primary vendor/device pair for distinct board designs.
|
||||
|
||||
**Vendor ID**: the 16-bit manufacturer identifier assigned by the PCI-SIG.
|
||||
|
||||
|
||||
|
||||
---
|
||||
|
||||
_End of Chapter 18._
|
||||
|
||||
|
|
|
|||
|
|
@ -4003,9 +4003,3 @@ A reader who has written the Chapter 19 driver has written one interrupt handler
|
|||
The skill Chapter 19 teaches is not "how to handle interrupts for the virtio-rnd device". It is "how to split work between primary context and thread context, how to respect the filter's constraints, how to tear down cleanly, and how to cooperate with other drivers on a shared line". Each of those is a transferable skill. Every driver in the FreeBSD tree exercises some of them; most drivers exercise all of them.
|
||||
|
||||
For this reader and for this book's future readers, the Chapter 19 filter and task are a permanent part of the `myfirst` driver's architecture. Every later chapter assumes them. Every later chapter extends them. The driver's overall complexity will grow, but the interrupt path will remain what Chapter 19 made it: a narrow, fast, correctly-ordered piece of code that gets out of the way so the rest of the driver can do its job.
|
||||
|
||||
|
||||
|
||||
---
|
||||
|
||||
_End of Chapter 19._
|
||||
|
|
|
|||
|
|
@ -4133,9 +4133,3 @@ Chapter 20's lesson is that multi-vector handling is an exercise in symmetry. Ea
|
|||
For this reader and for this book's future readers, the Chapter 20 multi-vector pattern is a permanent part of the `myfirst` driver's architecture and a permanent tool in the reader's toolkit. Chapter 21 assumes it: per-queue DMA rings, per-queue completion interrupts, per-queue CPU placement. The vocabulary is the vocabulary every high-performance FreeBSD driver shares; the patterns are the patterns the kernel's own test drivers use; the discipline is the discipline production drivers live by.
|
||||
|
||||
The skill Chapter 20 teaches is not "how to allocate MSI-X for virtio-rng-pci". It is "how to design a multi-vector driver, allocate its vectors, place them on CPUs, route events per vector, and tear it all down cleanly". That skill applies across every multi-queue device the reader will ever work on.
|
||||
|
||||
|
||||
|
||||
---
|
||||
|
||||
_End of Chapter 20._
|
||||
|
|
|
|||
|
|
@ -4030,7 +4030,3 @@ Chapter 21's lesson is that DMA is disciplined, not magical. The `bus_dma(9)` AP
|
|||
For this reader and for this book's future readers, the Chapter 21 DMA pattern is a permanent part of the `myfirst` driver's architecture and a permanent tool in the reader's toolkit. Chapter 22 assumes it: suspend needs to quiesce DMA; resume needs to reinitialise it. Part 6's networking chapters assume it: every packet path uses DMA. Part 7's performance chapters (Chapter 33) assume it: every tuning measurement is against DMA throughput. The vocabulary is the vocabulary every high-performance FreeBSD driver shares; the patterns are the patterns production drivers live by; the discipline is the discipline that keeps coherent platforms coherent and non-coherent platforms correct.
|
||||
|
||||
The skill Chapter 21 teaches is not "how to set up a single 4 KB DMA buffer". It is "how to think about memory ownership between the CPU and the device, how to describe a device's constraints to the kernel, and how to move data under a sync discipline that works portably on every platform FreeBSD supports". That skill applies across every DMA-capable device the reader will ever work on.
|
||||
|
||||
|
||||
|
||||
---
|
||||
|
|
|
|||
|
|
@ -4043,4 +4043,4 @@ For this reader and for this book's future readers, the Chapter 22 power-managem
|
|||
|
||||
The skill Chapter 22 teaches is not "how to add suspend and resume methods to a single PCI driver". It is "how to think about a driver's lifecycle as attach, run, quiesce, sleep, wake, run, and eventually detach, rather than just attach, run, detach". That skill applies across every driver the reader will ever work on.
|
||||
|
||||
Part 4 is complete. The `myfirst` driver is at `1.5-power`, structurally parallel to a production FreeBSD driver, and ready for the debugging, tooling, and specialisation chapters that follow in Parts 5 and 6. Chapter 23 starts there.
|
||||
Part 4 is complete. The `myfirst` driver is at `1.5-power`, structurally parallel to a production FreeBSD driver, and ready for the debugging, tooling, and specialisation chapters that follow in Parts 5 and 6.
|
||||
|
|
|
|||
|
|
@ -4020,5 +4020,3 @@ kdump -f trace.out | grep -E 'CALL|RET|NAMI'
|
|||
**WITNESS**: A kernel lock-order verification system. Panics on lock-order violations when `options WITNESS` is set.
|
||||
|
||||
**1.6-debug**: The driver version after Section 8. Carries the verbosity mask, sysctl, DPRINTF pattern, and SDT probes.
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -4054,4 +4054,3 @@ sudo kldunload mydriver
|
|||
These are the day-to-day commands. A quick-reference card like this, pinned to a wall or kept in a terminal tab, saves hours over the course of a project.
|
||||
|
||||
With that, the chapter is complete.
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue