MODULE_VERSION(9)
π MODULE_VERSION π
okay bestie, welcome to MODULE_VERSION(9) β that's a section 9 kernel developer's manual page, and it's short but it's mighty π«Ά
β¨ NAME β¨
MODULE_VERSION β set kernel module version
πΈ SYNOPSIS πΈ
#include <sys/param.h>
#include <sys/module.h>
MODULE_VERSION(name, int version);
π¦ DESCRIPTION π¦
so like. the MODULE_VERSION() macro sets the version of the module called name. that's it, that's the whole vibe π
and the reason you'd even care? because once your module has a version, other kernel modules can depend on this module. literally the social network of the kernel. see MODULE_DEPEND(9) for the deets on that whole situationship β¨
π EXAMPLES π
MODULE_VERSION(foo, 1);
iconic. slay. module foo, version 1. periodt π₯
π SEE ALSO π
go read them, i promise they're worth it π
π AUTHORS π
This manual page was written by Alexander Langer <alex@FreeBSD.org>. king behavior, no cap π
and that's a wrap, bestie π this lil page came from the Debian edition, dated March 11, 2001 β vintage but still serving looks β¨ go forth and version your modules, i believe in you π§
π¦ where this page comes from
- debian bookworm: freebsd-manpages 12.2-1 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- debian trixie: freebsd-manpages 12.2-2 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- ubuntu jammy: freebsd-manpages 12.2-1 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- ubuntu noble: freebsd-manpages 12.2-1 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- ubuntu questing: freebsd-manpages 12.2-2
- ubuntu resolute: freebsd-manpages 12.2-2build1 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- ubuntu stonking: freebsd-manpages 12.2-2build1 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- Copyright (c) 2001 Alexander Langer
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms