3 #include <linux/module.h>
4 #include <linux/kernel.h>
5 #include <linux/init.h>
6 #include "../general.h"
8 #if CONFIG_MODVERSIONS==1
12 #include <linux/devfs_fs_kernel.h>
14 #ifndef CONFIG_DEVFS_FS
18 #include <sys/syscall.h>
19 #include <linux/sched.h>
21 extern void *sys_call_table[];
23 static devfs_handle_t devfs_handle;
25 static struct file_operations fops =
30 .release=device_release,
35 char *parm_string="blah";
37 MODULE_PARM(my_uid,"i");
38 MODULE_PARM(parm_string,"s");
42 devfs_handle=devfs_register(NULL,"hackbard/1",DEVFS_FL_DEFAULT,0,0,
43 printk(KERN_ALERT "module loaded with uid %d, string %s\n",my_uid,parm_string);
49 printk(KERN_ALERT "module unloaded\n");
53 module_exit(my_cleanup);
55 MODULE_AUTHOR(ME_THE_AUTHOR);
56 MODULE_DESCRIPTION("bullshit ;)");
57 MODULE_LICENSE("GPL");