36 #include <linux/module.h>
37 #include <linux/tty.h>
38 #include <linux/sched.h>
39 #include <asm/unaligned.h>
46 static int dgrp_mon_open(
struct inode *,
struct file *);
47 static int dgrp_mon_release(
struct inode *,
struct file *);
48 static ssize_t dgrp_mon_read(
struct file *,
char __user *,
size_t, loff_t *);
49 static long dgrp_mon_ioctl(
struct file *
file,
unsigned int cmd,
54 .read = dgrp_mon_read,
55 .unlocked_ioctl = dgrp_mon_ioctl,
56 .open = dgrp_mon_open,
57 .release = dgrp_mon_release,
163 time = (
uint32_t) (tv.tv_sec & 0xffffffff);
166 put_unaligned_be16(0, buf + 4);
172 put_unaligned_be16(1, buf + 5);
180 put_unaligned_be16(1, buf + 5);
204 static int dgrp_mon_release(
struct inode *inode,
struct file *file)
251 static ssize_t dgrp_mon_read(
struct file *file,
char __user *buf,
size_t count,
343 static long dgrp_mon_ioctl(
struct file *file,
unsigned int cmd,