MODULE_VERSION(9)
π MODULE_VERSION(9) β like, the kernel module version setter, bestie
Okay so this is a page from the Kernel Developer's Manual β yes, the kernel, we're in the big leagues now β and it's all about MODULE_VERSION. Come sit with me, this one's short and sweet and honestly kinda iconic. π
β¨ NAME β¨
MODULE_VERSION β set kernel module version. That's it. That's the whole job. Slay. π
πΈ SYNOPSIS πΈ
#include <sys/param.h>
#include <sys/module.h>
MODULE_VERSION(name, int version);
Like, include the two headers first (<sys/param.h> and <sys/module.h>), then you can call the macro. Order matters, bestie, don't come at me. π«Ά
π¦ DESCRIPTION π¦
So the MODULE_VERSION() macro does exactly one thing and it does it well: it sets the version of the module called name. That's it, no cap.
And why do we care? Because other kernel modules can then depend on this module β like, they can literally say "yeah I need this one" and everything's chill. If you wanna see how that dependency thing works, go peek at MODULE_DEPEND(9). iykyk. β¨
π₯ EXAMPLES π₯
Here's the vibe check β setting the version of the foo module to 1:
MODULE_VERSION(foo, 1);
That's literally it. Ate and left no crumbs. π
π SEE ALSO π
Go read those if you want the full friend-group lore. π
π AUTHORS π
This manual page was written by Alexander Langer <alex@FreeBSD.org>. Iconic behavior, honestly. π«‘
Lowkey the shortest manpage ever and honestly? We love her for it. No filler, just vibes and a macro. π
Okay bestie, that's the whole page, and for the cute lil sign-off: this gem comes to you from Debian, dated March 11, 2001, and it's still out here being MODULE_VERSION(9) to this very day. π§π
π¦ where this page comes from
- freebsd 14.5: base 14.5
- freebsd 15.1: base 15.1
- nixpkgs unstable: source
- Copyright (c) 2001 Alexander Langer
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms