]> rtime.felk.cvut.cz Git - lincan.git/blobdiff - lincan/src/ioctl.c
Structured comments updated.
[lincan.git] / lincan / src / ioctl.c
index 38743fabbac9bd5805db4b8fd38d9b85b70a0302..4cf3ca5249535d90552fbc27fbc8d68cf8508137 100644 (file)
@@ -24,7 +24,7 @@ int can_ioctl(struct inode *inode, struct file *file, unsigned int cmd, unsigned
        struct canque_ends_t *qends;
        
        if(!canuser || (canuser->magic != CAN_USER_MAGIC)){
-               CANMSG("can_close: bad canuser magic\n");
+               CANMSG("can_ioctl: bad canuser magic\n");
                return -ENODEV;
        }
        
@@ -43,6 +43,9 @@ int can_ioctl(struct inode *inode, struct file *file, unsigned int cmd, unsigned
        }
 
        switch (cmd) {
+               case CAN_DRV_QUERY: {
+                       return can_ioctl_query(canuser, arg);
+               }
                case STAT: {
                        for (i=0x0; i<0x100; i++)
                                CANMSG("0x%x is 0x%x\n",i,can_read_reg(chip,i));