struct msgobj_t *obj;
struct canchip_t *chip;
struct canque_ends_t *qends;
-
+
if(!canuser || (canuser->magic != CAN_USER_MAGIC)){
CANMSG("can_ioctl_: bad canuser magic\n");
return -ENODEV;
}
-
+
obj = canuser->msgobj;
if (obj == NULL) {
CANMSG("Could not assign buffer structure\n");
break;
}
-
+
case CANQUE_FILTER: {
struct canfilt_t canfilt=*(struct canfilt_t *)arg;
if(canuser->rx_edge0){
CANMSG("Not a valid ioctl command\n");
return -EINVAL;
}
-
+
}
return 0;