#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/hrtimer.h>
#include <linux/slab.h>
#include <linux/stm.h>
#define STM_HEARTBEAT_MAX …
static int nr_devs = …;
static int interval_ms = …;
module_param(nr_devs, int, 0400);
module_param(interval_ms, int, 0600);
static struct stm_heartbeat { … } stm_heartbeat[STM_HEARTBEAT_MAX];
static const char str[] = …;
static enum hrtimer_restart stm_heartbeat_hrtimer_handler(struct hrtimer *hr)
{ … }
static int stm_heartbeat_link(struct stm_source_data *data)
{ … }
static void stm_heartbeat_unlink(struct stm_source_data *data)
{ … }
static int stm_heartbeat_init(void)
{ … }
static void stm_heartbeat_exit(void)
{ … }
module_init(…) …;
module_exit(stm_heartbeat_exit);
MODULE_LICENSE(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_AUTHOR(…) …;