xref: /freebsd/sbin/devd/devmatch.conf (revision a64729f5077d77e13b9497cb33ecb3c82e606ee8)
1# Implement the run-time component of devmatch by reacting to nomatch events.
2
3#
4# Ignore those devices that can't possibly match. When there's neither a
5# location, nor a pnpinfo string, we know that there's nothing devmatch can
6# match on. When it's only a location, it'd debateable, but for nomatch
7# events, we can't disambiguate between the two reliably.
8#
9nomatch 101 {
10	match "_" " +at +on .*";
11};
12
13#
14# Ignore ACPI devices whose _HID is none. These cannot tell us what to load,
15# since 'none' is not a valid id. There's no need to call devvmatch for these either.
16#
17nomatch 101 {
18	match "_HID" "none";
19	match "bus" "acpi[0-9]+";
20};
21
22#
23# Generic NOMATCH event
24#
25# Note: It would be better to have some internal-to-devd action that will do
26# what devmatch does without re-parsing loader.hints for each invocation
27#
28nomatch 100 {
29	action "service devmatch quietstart $*";
30};
31
32# Add the following to devd.conf to prevent this from running:
33# 	nomatch 1000 {
34#		action "true";
35#	};
36# it replaces the generic event with one of higher priority that
37# does nothing. You can also set 'devmatch_enable=NO' in /etc/rc.conf
38