new_rtr_entry=(struct rtr_id *)kmalloc(sizeof(struct rtr_id),GFP_ATOMIC);
rtr_current->next=new_rtr_entry;
}
-#if (LINUX_VERSION_CODE <= KERNEL_VERSION(2,3,0))
- init_waitqueue(&new_rtr_entry->rtr_wq);
-#else
init_waitqueue_head(&new_rtr_entry->rtr_wq);
-#endif
new_rtr_entry->id = read_msg.id;
new_rtr_entry->rtr_message = &read_msg;
new_rtr_entry->next=NULL;
DEBUGMSG("this will always return zero.\n");
return 0;
}
- if (length > 8 * sizeof(struct canmsg_t)) {
- DEBUGMSG("Reading more than 8 CAN messages, this is not supported.\n");
- DEBUGMSG("Defaulting to 8 messages.\n");
- length = 8 * sizeof(struct canmsg_t);
- }
/* Initialize hardware pointers */
obj = canuser->msgobj;
if (obj == NULL) {