Page MenuHomeFreeBSD

rc: Improve load_kld
ClosedPublic

Authored by des on Jun 20 2026, 1:18 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Aug 14, 10:32 PM
Unknown Object (File)
Thu, Aug 13, 2:27 AM
Unknown Object (File)
Thu, Aug 13, 1:18 AM
Unknown Object (File)
Tue, Aug 11, 6:53 PM
Unknown Object (File)
Mon, Aug 10, 2:26 PM
Unknown Object (File)
Mon, Aug 10, 12:43 PM
Unknown Object (File)
Sun, Aug 9, 7:02 PM
Unknown Object (File)
Sun, Aug 9, 7:02 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