Page MenuHomeFreeBSD

rc: Improve load_kld
ClosedPublic

Authored by des on Jun 20 2026, 1:18 PM.
Tags
None
Referenced Files
F172138449: D57706.diff
Wed, Sep 16, 9:45 AM
Unknown Object (File)
Mon, Sep 14, 4:43 AM
Unknown Object (File)
Mon, Sep 14, 4:40 AM
Unknown Object (File)
Mon, Sep 14, 1:06 AM
Unknown Object (File)
Thu, Sep 10, 5:43 AM
Unknown Object (File)
Wed, Sep 9, 8:51 PM
Unknown Object (File)
Tue, Sep 8, 3:10 AM
Unknown Object (File)
Sun, Sep 6, 1:39 AM
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