I am trying to put together the following: an NI PCI 6023 card on an Opteron (x86_64 machine) running Linux 2.6.7, and giving its data to Lab View by way of Comedi. I've run into a 64 bit compatibility bug in Comedi that I am fixing, (the COMEDI_DEVCONFIG ioctl) but if I have to make modifications to comedi, knowing that LabView is itself compiled for 32 bit operation, then I have to know what I am doing.
Right now the comedi driver does something to the IRQ handling structure in the Linux kernel. A split second after an ioctl(COMEDI_DEVCONFIG) is called, the kernel goes back to the do_IRQ() function, hence to handle_IRQ_event, finds a task from the hard drive (scsi_io_completion), and in trying to deal with it finds something that causes i
t to go into a kernel panic.
Much as I would like to fix this problem, I am at a loss as to where even to start, and would be much oblgied for any help.