reinit
This commit is contained in:
@@ -10,6 +10,7 @@
|
||||
|
||||
#define DEVICE_NAME "variable_monitor"
|
||||
|
||||
//!todo check name
|
||||
// for character device
|
||||
static dev_t dev_num;
|
||||
static struct cdev *watch_cdev;
|
||||
@@ -56,7 +57,7 @@ static long device_ioctl(struct file *file, unsigned int ioctl_num,
|
||||
|
||||
printk(KERN_INFO "variable_monitor fun: %s with ioctl_num %d\n", __FUNCTION__,
|
||||
ioctl_num);
|
||||
|
||||
//!todo check style
|
||||
switch (ioctl_num) {
|
||||
case 0:
|
||||
// copy watch_arg
|
||||
|
||||
Reference in New Issue
Block a user