---
name: "MODULE_VERSION"
section: "9"
platform: "linux"
package: "freebsd-manpages"
version: "6.0-5"
release: "Debian 4.0 (Etch)"
platforms: ["linux", "freebsd"]
url: "https://new.carta.tech/MODULE_VERSION"
---

# MODULE\_VERSION(9)

set kernel module version

## NAME

**MODULE\_VERSION** – set kernel module version

## SYNOPSIS

**#include \<sys/param.h\>**

**#include \<sys/module.h\>**

**MODULE\_VERSION**(*name*, *int version*);

## DESCRIPTION

The **MODULE\_VERSION**() macro sets the version of the module called *name*. Other kernel modules can then depend on this module (see [MODULE\_DEPEND(9)](/MODULE_DEPEND/9.md)).

## EXAMPLES

```
MODULE_VERSION(foo, 1);
```

## SEE ALSO

[DECLARE\_MODULE(9)](/DECLARE_MODULE/9.md), [module(9)](/module/9.md), [MODULE\_DEPEND(9)](/MODULE_DEPEND/9.md)

## AUTHORS

This manual page was written by Alexander Langer ⟨alex@FreeBSD.org⟩.
