int can_fasync(int fd, struct file *file, int on)
{
int retval;
-
+
struct canuser_t *canuser = (struct canuser_t*)(file->private_data);
struct canque_ends_t *qends;
-
+
if(!canuser || (canuser->magic != CAN_USER_MAGIC)){
CANMSG("can_close: bad canuser magic\n");
return -ENODEV;
}
-
+
qends = canuser->qends;
retval = fasync_helper(fd, file, on, &qends->endinfo.fileinfo.fasync);