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