Background:
I want to test out some hardware that I have. This is for an ARM based
solution, but I think what I want to do is generic enough for this list.
I want to expose an SPI function to userland so that I can talk to some
SPI chips on my development board. I looked in the code and I see that
there is a spi_write_then_read function in the SPI drivers. I have read
Linux Device Drivers, and so I have written the little skull driver. But
that is on my x86 development system and produces a loadable module that
I manually link into my running system.
Is there any way I can access this function from userland without
writing a device driver?
Otherwise I assume that I need create or copy a similar driver into the
device folder. Then I will need to integrate it into the build. This is
where I am getting confused. I cannot find a simple document that
illustrates adding a new device driver into the kernel build. I'm sure
it is out there, but all the ones I have found so far seem to redirect
me to N different documents and I get lost in the snow.
Is there such a document?
Thanks,
--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ