DEVMATCH(8)

πŸ“¦
version 15.1 Β· 2 versions
, in freebsd 15.1

🌸 NAME 🌸

devmatch β€” print information about unattached devices. (Yes bestie, this is the DEVMATCH(8) page from the System Manager's Manual, and we're about to get into it πŸ’–.)

✨ SYNOPSIS ✨

devmatch [-a | --all] [-d | --dump] [[-h | --hints] file]
         [[-p | --nomatch] event] [-q | --quiet] [-u | --unbound]
         [-v | --verbose]

πŸ’– DESCRIPTION πŸ’–

okay so the devmatch utility, without any arguments, prints all the kernel modules it has found for all the unattached, enabled devices in the system. Yes, all of them. It's giving full device tea β˜•βœ¨

Here's the flag menu, bestie β€” every single one, no skips:

  • -a, --all β€” include all devices, not just the ones that are unattached. πŸ’…
  • -d, --dump β€” produce a human readable dump of the linker.hints file.
  • -h, --hints file β€” use the named file instead of linker.hints guessed from the current module load path.
  • -p, --nomatch event β€” parse and use a standard NOMATCH event from devd(8) for matching instead of searching the device tree.
  • -q, --quiet β€” suppress some error messages and simply return a non-zero exit code. This is helpful to avoid an endless list of warnings during bootup if no hints are available.
  • -u, --unbound β€” attempt to produce a list of those drivers with PNP info whose driver tables with that PNP info cannot be found.
  • -v, --verbose β€” produce more verbose output.

πŸ‘€ SEE ALSO πŸ‘€

You'll also wanna peek at rc.conf(5), devinfo(8), and MODULE_PNP_INFO(9) β€” iykyk 🫢

πŸ•°οΈ HISTORY πŸ•°οΈ

devmatch first appeared in FreeBSD 12.0 β€” iconic behavior, honestly. periodt. ✨

πŸ‘‘ AUTHORS πŸ‘‘

Warner Losh <imp@FreeBSD.org> β€” give them their flowers πŸ’πŸ‘‘

πŸ’€ BUGS πŸ’€

  • The kernel has hints in it, but we exclude it from the list of modules to suggest for unmatched devices. We exclude it when suggesting drivers, but include it when looking for unbound devices or producing a full dump of linker.hints. This can be confusing. πŸ˜΅β€πŸ’«
  • Some modules are hard links in /boot/kernel and will be reported twice. πŸ’€
  • The PNP string's attributes are evaluated once per PNP entry on that bus rather than once. πŸ™ˆ
  • The term PNP is overloaded in FreeBSD. It means, generically, the identifying data the bus provides about a device. While this includes old ISA PNP identifiers, it also includes the logical equivalent in USB, PCI, and others. πŸŒ€
  • Many drivers currently lack proper PNP table decorations and need to be updated. πŸ› οΈ

okay bestie, that's the whole DEVMATCH(8) page! This one comes from Debian, dated August 13, 2023 β€” byeee, go match some devices πŸ’–πŸ«Άβœ¨

πŸ“¦ where this page comes from
  • freebsd 15.1: base 15.1
  • πŸ’– girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms