]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Match unattached devices on the system to potential kernel modules.
authorWarner Losh <imp@FreeBSD.org>
Mon, 25 Dec 2017 18:56:08 +0000 (18:56 +0000)
committerWarner Losh <imp@FreeBSD.org>
Mon, 25 Dec 2017 18:56:08 +0000 (18:56 +0000)
commitd9aed21ce3b14c84e03f0c8ce233d63211af1735
treef73e30db369c6636c9eccf021cffc76528c95059
parentb7bb2f26b3cd1740c4345bd48710ceddf931ac55
Match unattached devices on the system to potential kernel modules.

devmatch(8) matchs up devices in the system device tree with drivers
that may match them. For each unattached device in the system, it
tries to find matching PNP info in the linker hints and prints modules
to load to claim the devices.

In --unbound mode, devmatch can look for drivers that have attached to
devices in the device tree and have plug and play information, but for
which no PNP info exists. This helps find drivers that haven't been
converted yet that are in use on this system.

In addition, the ability to dump out linker.hints is provided.

Future commits will add hooks to devd.conf and rc.d to fully automate
using this information.
usr.sbin/Makefile
usr.sbin/devmatch/Makefile [new file with mode: 0644]
usr.sbin/devmatch/devmatch.8 [new file with mode: 0644]
usr.sbin/devmatch/devmatch.c [new file with mode: 0644]