If all you want to do is interface to an SPI peripheral, why mess with interrupts and drivers?
Galileo's linux has good, standard, user-mode SPI libraries and I use them to interface to my LED Matrix which has 3 SPI devices on board.
Attached is the entire source code for a test version of my LED Matrix, it shows setting up the GPIO and Accessing SPI from C code on Galileo.
I hope this helps.
Archive.zip 5.4 K
Thanks for the head's up on availability of "spidev" module, I am looking into that.
My intentions are to build a real time data acquisition system, the driver code for my hardware is already in the main line, so I need not have to write a user space interface for the hardware. Hardware sends a signal on availability of data, in userspace I might have a setup a poll or similar methods, instead I would prefer a driver taking care of all these.
Refer to Galileo I/O Mappings documents to figure out which GPIO is being user,
Use functions like gpio_request_one() or gpio_request_array() [in case of a single / multiple gpio(s) ] to allocate the GPIO's first, then use irq = gpio_to_irq(gpioX) function to get the IRQ number associated with the GPIO-x.