| #
aa7c028a
|
| 27-Oct-2023 |
Warner Losh <imp@FreeBSD.org> |
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 o
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
show more ...
|
| #
d0b2dbfa
|
| 16-Aug-2023 |
Warner Losh <imp@FreeBSD.org> |
Remove $FreeBSD$: one-line sh pattern
Remove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/
|
| #
44e1285c
|
| 21-Aug-2018 |
Brad Davis <brd@FreeBSD.org> |
Move all devd related configs to sbin/devd/
This helps with pkgbase as it switches these to using CONFS so they are properly tagged as config files.
Approved by: will (mentor), imp Differential Rev
Move all devd related configs to sbin/devd/
This helps with pkgbase as it switches these to using CONFS so they are properly tagged as config files.
Approved by: will (mentor), imp Differential Revision: https://reviews.freebsd.org/D16781
show more ...
|
| #
0a463958
|
| 28-Jun-2018 |
Warner Losh <imp@FreeBSD.org> |
Fix quoting in sending the NOMATCH event to devmatch
The NOMATCH event was previously quoted to protect it from shell expansion. However, that quoting now interferes with the quoting devd is doing.
Fix quoting in sending the NOMATCH event to devmatch
The NOMATCH event was previously quoted to protect it from shell expansion. However, that quoting now interferes with the quoting devd is doing. Quote to protect just the ?.
show more ...
|
| #
9d3730e5
|
| 14-Jun-2018 |
Kyle Evans <kevans@FreeBSD.org> |
devmatch: Address some rc nits
- devmatch_enable in rc.conf(5) was not gating the start of devmatch
- Use quietstart in devd/devmatch to suppress dozens of 'Cannot start' messages and other spuri
devmatch: Address some rc nits
- devmatch_enable in rc.conf(5) was not gating the start of devmatch
- Use quietstart in devd/devmatch to suppress dozens of 'Cannot start' messages and other spurious messages from rc.subr(8) that aren't necessarily helpful.
Discussed with: imp
show more ...
|
| #
b5e2ff92
|
| 11-Jun-2018 |
Warner Losh <imp@FreeBSD.org> |
User service foo rather than /etc/rc.d/foo.
devd predates service in the system. Modernize usage to use service to start/stop things in reaction to events rather than calling the rc file directly.
User service foo rather than /etc/rc.d/foo.
devd predates service in the system. Modernize usage to use service to start/stop things in reaction to events rather than calling the rc file directly.
This was pointed out in my talk at BSDcan as well as indirectly referrred to as a barrier to entry for OpenRC in that working group.
show more ...
|
| #
9a44db43
|
| 17-Feb-2018 |
Hans Petter Selasky <hselasky@FreeBSD.org> |
Invoke devmatch rc.d script directly instead of depending on "service" which is installed in usr/sbin and might not be available at the time devd is started.
Sponsored by: Mellanox Technologies
|
| #
247f52f1
|
| 17-Feb-2018 |
Warner Losh <imp@FreeBSD.org> |
Pass in the NOMATCH event to devmatch
In devd/devmatch.conf, we need to pass the event to the devmatch serivce. It gets passed to devmatch -p for matching. We always pass this, unlike hps' original
Pass in the NOMATCH event to devmatch
In devd/devmatch.conf, we need to pass the event to the devmatch serivce. It gets passed to devmatch -p for matching. We always pass this, unlike hps' original patch, so we kill two birds with one stone and only match modules to the event passed in.
Submitted by: hps@ Sponsored by: Netflix
show more ...
|
| #
6bb41868
|
| 13-Feb-2018 |
Hans Petter Selasky <hselasky@FreeBSD.org> |
Add missing semicolon to not break devd during system startup.
|
| #
ff99e282
|
| 12-Feb-2018 |
Warner Losh <imp@FreeBSD.org> |
Fix typo
|
| #
8d99f31c
|
| 12-Feb-2018 |
Warner Losh <imp@FreeBSD.org> |
Turn devmatch on by default.
Turn devmatch on by default. However, use 'start' instead of 'onestart' in the devmatch.conf file so the setting of 'devmatch_enable' is honored. Give an example of what
Turn devmatch on by default.
Turn devmatch on by default. However, use 'start' instead of 'onestart' in the devmatch.conf file so the setting of 'devmatch_enable' is honored. Give an example of what to put in devd.conf if you want to disable just the run-time part of devmatch.
Relnotes: yes
show more ...
|
| #
4420d8e1
|
| 12-Feb-2018 |
Warner Losh <imp@FreeBSD.org> |
Switch to using devmatch to autoload drivers. Remove usb.conf as obsolete because devmatch gets its information from the same place as the genration scripts.
|