#include <linux/init.h>
#include <linux/slab.h>
#include <linux/module.h>
#include <linux/moduleparam.h>
#include <linux/hrtimer.h>
#include <sound/core.h>
#include <sound/timer.h>
MODULE_AUTHOR(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;
MODULE_ALIAS(…) …;
#define NANO_SEC …
static unsigned int resolution;
struct snd_hrtimer { … };
static enum hrtimer_restart snd_hrtimer_callback(struct hrtimer *hrt)
{ … }
static int snd_hrtimer_open(struct snd_timer *t)
{ … }
static int snd_hrtimer_close(struct snd_timer *t)
{ … }
static int snd_hrtimer_start(struct snd_timer *t)
{ … }
static int snd_hrtimer_stop(struct snd_timer *t)
{ … }
static const struct snd_timer_hardware hrtimer_hw __initconst = …;
static struct snd_timer *mytimer;
static int __init snd_hrtimer_init(void)
{ … }
static void __exit snd_hrtimer_exit(void)
{ … }
module_init(…) …;
module_exit(snd_hrtimer_exit);