#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/console.h>
#include <linux/slab.h>
#include <linux/stm.h>
static int stm_console_link(struct stm_source_data *data);
static void stm_console_unlink(struct stm_source_data *data);
static struct stm_console { … } stm_console = …;
static void
stm_console_write(struct console *con, const char *buf, unsigned len)
{ … }
static int stm_console_link(struct stm_source_data *data)
{ … }
static void stm_console_unlink(struct stm_source_data *data)
{ … }
static int stm_console_init(void)
{ … }
static void stm_console_exit(void)
{ … }
module_init(…) …;
module_exit(stm_console_exit);
MODULE_LICENSE(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_AUTHOR(…) …;