blob: 58bc76be9ffea6f258d521148a5055ed777f7301 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
static int __init mod_init(void);
static void __exit mod_exit(void);
static long mod_ioctl(struct file *filp,unsigned int cmd,unsigned long arg);
static dev_t mod_dev;
static struct cdev mod_cdev;
static struct class *mod_class;
extern int judgk_hyperio_mmap(struct file *filp,struct vm_area_struct *vma);
static struct file_operations mod_fops = {
.owner = THIS_MODULE,
.unlocked_ioctl = mod_ioctl,
.mmap = judgk_hyperio_mmap
};
extern int judgk_proc_init(void);
extern int judgk_proc_exit(void);
extern int judgk_proc_add(unsigned long arg);
extern int judgk_proc_get(unsigned long arg);
extern int judgk_proc_del(unsigned long arg);
extern int judgk_syscall_hook(void);
extern int judgk_syscall_unhook(void);
extern int judgk_security_hook(void);
extern int judgk_security_unhook(void);
extern int judgk_hyperio_init(void);
extern int judgk_hyperio_exit(void);
extern int judgk_hyperio_add(struct file *filp);
extern int judgk_hyperio_read(struct file *filp,size_t len);
extern int judgk_hyperio_write(struct file *filp,size_t len);
extern int judgk_hyperio_del(struct file *filp);
|