net/batman-adv/version.c

Source file repositories/reference/linux-study-clean/net/batman-adv/version.c

File Facts

System
Linux kernel
Corpus path
net/batman-adv/version.c
Extension
.c
Size
494 bytes
Lines
13
Domain
Networking Core
Bucket
Sockets, Protocols, Packet Path, And Network Policy
Inferred role
Networking Core: implementation source
Status
source implementation candidate

Why This File Exists

Networking stack implementation surface: socket APIs, protocol dispatch, packet flow, routing, filtering, and network namespaces.

Dependency Surface

Detected Declarations

Annotated Snippet

// SPDX-License-Identifier: GPL-2.0

#include <generated/utsrelease.h>
#include <linux/module.h>

/* WARNING userspace tools like batctl were relying on
 * /sys/module/batman_adv/version to check if the module was loaded. If it
 * isn't present, they usually error out before finishing setup of the batadv
 * interface. It should be kept until it is unlikely that there are active
 * installations of these "broken" versions of these tools with recent kernels.
 */
MODULE_VERSION(UTS_RELEASE);

Annotation

Implementation Notes