This commit is contained in:
zy
2023-11-27 20:34:06 -05:00
parent 7e3b4ded0c
commit e560158cbc
10 changed files with 65 additions and 149 deletions

View File

@@ -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