Page MenuHomeFreeBSD

rc: Improve load_kld
ClosedPublic

Authored by des on Jun 20 2026, 1:18 PM.
Tags
None
Referenced Files
F170543427: D57706.diff
Sat, Sep 5, 8:10 AM
F170515113: D57706.diff
Sat, Sep 5, 4:45 AM
F170403243: D57706.diff
Fri, Sep 4, 4:12 PM
F170403157: D57706.diff
Fri, Sep 4, 4:11 PM
Unknown Object (File)
Fri, Sep 4, 10:22 AM
Unknown Object (File)
Fri, Sep 4, 10:06 AM
Unknown Object (File)
Fri, Sep 4, 6:57 AM
Unknown Object (File)
Thu, Sep 3, 10:33 PM
Subscribers

Details

Summary
  • Centralize the usage message.
  • Document and enforce that -e and -m are mutually exclusive; previously, speficying both would result in only -e being applied.
  • If -e was not specified, and -m was not specified or did not match, fall back to kldstat -n file which will always work for modules that aren't built into the kernel.

This means the kld and ntpd scripts can now rely on load_kld to dtrt.

MFC after: 1 week

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable