How do I use ioctl() to manipulate my kernel module?
问题 So I'm trying to write a kernel module that uses the linux/timer.h file. I got it to work inside just the module, and now I am trying to get it to work from a user program. Here is my kernel module: //Necessary Includes For Device Drivers. #include <linux/init.h> #include <linux/module.h> #include <linux/kernel.h> #include <linux/fs.h> #include <linux/errno.h> #include <linux/proc_fs.h> #include <asm/uaccess.h> #include <linux/timer.h> #include <linux/ioctl.h> #define DEVICE_NAME "mytimer"