KLDXREF(8)
π KLDXREF(8) β the girl's guide to kldxref π
ok so like. this is the System Manager's Manual page for kldxref, and bestie, it's giving "quiet little utility that actually runs the whole show." stay with me π«Ά
β¨ NAME β¨
kldxref β generate hints for the kernel loader
πΈ SYNOPSIS πΈ
kldxref [-Rdv] [-f hintsfile] path ...
π¦ DESCRIPTION π¦
okay so the kldxref utility is used to generate hint files which list modules, their version numbers, and the files that contain them π. these hints are used by the kernel loader to determine where to find a particular KLD module. like, it's the little matchmaker that tells the loader where your module lives π
.
a separate hint file is generated for each directory listed on the command line that contains modules. and here's the part where it gets a little spicy π β if no hint records are generated for a particular directory, no hint file is created, and the preexisting hint file (if there was one in that directory) is removed. so like, no records = no file = old file gone. periodt.
kldxref only processes files that either have no dots in their name like kernel or that end in β.koβ like foo.ko. everything else? not invited to the party π.
the following options are available:
π OPTIONS π
-Rβ recurse into subdirectories. go deeper bestie, the modules are down there π-dβ do not generate a hint file, but print module metadata on standard output. just look, don't touch π-fhintsfile β specify a different name for the hints files thanlinker.hints. custom name, custom vibe β¨-vβ operate in verbose mode. she's talking now π¬
β EXAMPLES β
to build hint files for both standard and add-on modules:
kldxref /boot/kernel /boot/modules
to build hint files for all installed kernels:
kldxref -R /boot
ate, no crumbs π
π₯ SEE ALSO π₯
kld(4), kldconfig(8), kldload(8), kldstat(8), kldunload(8)
like, the whole kld friend group. iykyk π
π« HISTORY π«
the kldxref utility first appeared in FreeBSD 5.0. an icon, a legend, and she's been serving since day one π
π AUTHORS π
the kldxref utility was implemented by Boris Popov <bp@FreeBSD.org>. this manual page was written by Boris Popov <bp@FreeBSD.org> and Dag-Erling SmΓΈrgrav <des@FreeBSD.org>. we stan π«Ά
ok that's the whole page, every flag, every path, every warning β nothing skipped, nothing invented, just with way better energy π
and like, sourcing details for the record: this one's from the Debian folks, dated February 25, 2023, and it's the KLDXREF(8) page in the System Manager's Manual. mwah, bye bestie ππ
π¦ where this page comes from
- freebsd 15.1: base 15.1
- nixpkgs unstable: kldxref 15.0.0
- Copyright (c) 2001 Boris Popov
- Copyright (c) 2001 Dag-Erling SmΓΈrgrav
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms