KLDUNLOAD(8)

πŸ“¦ version 15.1, in freebsd 14.5, freebsd 15.1

πŸ‘‘ kldunload(8) β€” the un-loadening πŸ’…

okay so bestie, welcome to kldunload, straight out of the System Manager's Manual ✨ this is the utility that takes a file that was previously loaded into the kernel and goes "nope, we're done here" 🫢


🌸 NAME 🌸

kldunload β€” unload a file from the kernel πŸ’–

like, literally, it unloads a file. from the kernel. that's the whole vibe check.


✨ SYNOPSIS ✨

kldunload [-fv] -i id ...
kldunload [-fv] [-n] name ...

two whole ways in, bestie β€” pick your fighter πŸŽ€


πŸ¦‹ DESCRIPTION πŸ¦‹

The kldunload utility unloads a file which was previously loaded with kldload(8) πŸ’« so if you loaded it, you can unload it. balance. harmony. main character energy.

The following options are available:

  • -f β€” Force the unload πŸ”₯ This ignores error returns to MOD_QUIESCE from the module, and it implies that the module should be unloaded even if it is currently in use. The users are left to cope as best they can 😭 no cap, this is the "I'm built different" flag β€” you're on your own after this one.
  • -v β€” Be more verbose πŸ—£οΈ more words, more info, more everything.
  • -i id β€” Unload the file with this ID 🎯
  • -n name β€” Unload the file with this name 🏷️
  • name β€” Unload the file with this name πŸ’– (yes, same as -n, she's flexible like that)
⚠️ a gentle reminder that -f is the dramatic one β€” it forces through even when the module says "wait, please, I'm still in use" πŸ’€ the users are left to cope as best they can, and that's on them, fr fr.

🌈 EXIT STATUS 🌈

The kldunload utility exits 0 on success, and >0 if an error occurs ⭐

zero means slay. anything else means something went sideways, bestie πŸ₯²


🫢 SEE ALSO 🫢

go read your siblings, iykyk πŸ’œ


πŸŽ€ HISTORY πŸŽ€

The kldunload utility first appeared in FreeBSD 3.0, replacing the lkm interface πŸ‘‘ iconic behavior, retiring the old thing and stepping into the spotlight.


πŸ’– AUTHORS πŸ’–

Doug Rabson <dfr@FreeBSD.org> β€” thank you for your service, king 🫑🌸


<div align="center">πŸ’… ✨ πŸ¦‹</div>

and that's the whole page, bestie πŸŽ€ this little beauty comes to you from Debian, dated February 27, 2006 β€” old money, literally. now go unload something responsibly, and remember: force is a choice πŸ˜­πŸ’–

πŸ“¦ where this page comes from