/* Initialize the module */ int init_module() { /* If we return a non zero value, it means that * init_module failed and the kernel module * can't be loaded */ return 0; } ex stop.c
/* stop.c * Copyright (C) 1999 by Ori Pomerantz * * "Hello, world" - the kernel module version. This * file includes just the stop routine. */
/* The necessary header files */
/* Standard in kernel modules */ #include /* We're doing kernel work */
#define __NO_VERSION__ /* This isn't "the" file * of the kernel module */ #include /* Specifically, a module */
#include /* Not included by * module.h because * of the __NO_VERSION__ */