freebsd-src/sbin/devd
Warner Losh aa7c028adb devd: Improve devmatch support
We know that calling devmatch will be futile if there's no plug and play
information for it to match on. Avoid this generically when we see
	"? at +on"
which happens only when the location and pnpinfo aren't provided. Don't
call "service devmatch quietstart" here.

We also ignore ACPI devices with a _HID of none. These also will never
load a new driver, so avoid calling "service devmatch quietstart" here too.

Use the more compatct "$*" instead of "'?'$_" when calling "service
devmatch quietstart" since it will evaluate to the same thing.

On my laptop, this eliminates 45% of the calls to devmatch. While it
would be even better to integrate devmatch into devd (so we only parse
linker.hints once), that will have to wait for another day as it's a bit
more complex to arrange that avoiding easy to avoid calls.

Sponsored by:		Netflix
Reviewed by:		emaste
Differential Revision:	https://reviews.freebsd.org/D42326
2023-10-27 15:24:19 -06:00
..
tests Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
apple.conf Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
asus.conf Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
bluetooth.conf devd: Move bluetooth part in devd/bluetooth.conf 2023-02-08 08:51:34 +01:00
devd.8 Remove $FreeBSD$: two-line nroff pattern 2023-08-16 11:55:10 -06:00
devd.cc Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:42 -06:00
devd.conf devd: Remove obsolete / wrong nomatch examples 2023-10-27 15:24:19 -06:00
devd.conf.5 Remove $FreeBSD$: two-line nroff pattern 2023-08-16 11:55:10 -06:00
devd.h Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:16 -06:00
devd.hh Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:16 -06:00
devmatch.conf devd: Improve devmatch support 2023-10-27 15:24:19 -06:00
dhclient.conf devd: Move dhclient part in devd/dhclient.conf 2023-02-08 08:51:20 +01:00
hyperv.conf Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
Makefile devd: Restore WARNS=6 2023-10-26 10:11:59 -06:00
Makefile.depend Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
moused.conf pkgbase: Create a FreeBSD-console-tools package 2023-02-08 08:52:40 +01:00
parse.y Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:16 -06:00
power_profile.conf devd: Move power_profile part in devd/power_profile.conf 2023-02-08 08:52:17 +01:00
syscons.conf pkgbase: Create a FreeBSD-console-tools package 2023-02-08 08:52:40 +01:00
token.l Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:16 -06:00
uath.conf Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
ulpt.conf Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
zfs.conf Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00