MODINFO(8)

๐ŸŒธ MODINFO(8) โ€” the modinfo page, bestie edition ๐ŸŒธ

okay so real quick, the manual name is modinfo and it lives in section 8 of your man pages. she's a system-administration girlie. let's get into it ๐Ÿ’…


โœจ NAME โœจ

modinfo โ€” show info about a Linux Kernel module ๐Ÿงš

๐Ÿ“œ SYNOPSIS ๐Ÿ“œ

modinfo [-0] [-F field] [-k kernel] [modulename|filename...]

modinfo -V

modinfo -h

๐Ÿ’– DESCRIPTION ๐Ÿ’–

so basically modinfo extracts information from the Linux Kernel modules you hand it on the command line. if the module name isn't a filename, then the /lib/modules/ version directory gets searched โ€” exactly like modprobe(8) does when it's loading kernel modules. same energy, fr fr ๐Ÿซถ

by default modinfo lists each attribute of the module in the form fieldname : value, because she wants it to be easy to read, she's thoughtful like that. the filename gets listed the same way (even though technically it's not really an attribute, lowkey a liar but we love her anyway ๐Ÿ’€).

This version of modinfo can understand modules of ANY Linux Kernel architecture. no cap. every single one. iconic ๐Ÿ‘‘

๐ŸŽ€ OPTIONS ๐ŸŽ€

  • -V, --version โ€” print the modinfo version. that's it, that's the whole job.
  • -F field, --field=field โ€” only print THIS field value, one per line. this one is highkey made for scripts. field names are case-insensitive. the common fields (which, warning, may not be in every module) include author, description, license, parm, depends, and alias. there are often multiple parm, alias and depends fields, so don't come for her when you get more than one line. and the special field filename lists the filename of the module โœจ
  • -b basedir, --basedir=basedir โ€” root directory for modules, / by default. like, where she starts looking.
  • -k kernel โ€” provide information about a kernel other than the running one. this is particularly useful for distros that need to extract info from a newly installed (but not yet running) set of kernel modules. for example: you wanna find which firmware files are needed by various modules in a new kernel, because you have to make an initrd/initramfs image prior to booting. yes bestie, before. plan ahead ๐Ÿ’…
  • -0, --null โ€” use the ASCII zero character to separate field values, instead of a new line. useful for scripts, since a new line can theoretically appear inside a field. sneaky little newline ๐Ÿ™ˆ
  • -a --author, -d --description, -l --license, -p --parameters, -n --filename โ€” these are shortcuts for the --field flag's author, description, license, parm and filename arguments, to ease the transition from the old modutils modinfo. legacy support, she's respectful like that ๐Ÿซก
  • -h, --help โ€” print the help message and exit. bye bestie ๐Ÿ‘‹

this manual page originally Copyright 2003, Rusty Russell, IBM Corporation. periodt. ๐Ÿ“

๐Ÿ‘€ SEE ALSO ๐Ÿ‘€

๐Ÿ› BUGS ๐Ÿ›

please direct any bug reports to kmod's issue tracker at https://github.com/kmod-project/kmod/issues/ โ€” and girl, bring receipts: include the version used, the steps to reproduce the problem, and the expected outcome. no vague posting, we need the full story ๐Ÿ“‹โœจ

๐ŸŒŸ AUTHORS ๐ŸŒŸ

numerous contributions have come from the linux-modules mailing list <linux-modules@vger.kernel.org> and Github. if you have a clone of kmod.git itself, the output of git-shortlog(1) and git-blame(1) can show you the authors for specific parts of the project. detective work, honestly ๐Ÿ”

Lucas De Marchi <lucas.de.marchi@gmail.com> is the current maintainer of the project. crown stays on ๐Ÿ‘‘


cute lil sign-off: this page is from kmod, dated 2026-10-30. go read your kernel modules, bestie, you got this ๐Ÿ’œ๐Ÿฆ‹โญ
๐Ÿ“ฆ where this page comes from
  • arch rolling: kmod 34.3-1 ยท LGPL-2.1-or-later AND GPL-2.0-or-later
  • ๐Ÿ’– girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms