While(1) in kernel space
Grant Likely
grant.likely at secretlab.ca
Wed Jul 9 00:19:00 EST 2008
On Tue, Jul 8, 2008 at 1:55 AM, Paolo Doz <paolo.doz at gmail.com> wrote:
> Hi folks,
> I'm developing a custom SPI driver (char device) on a MPC5200b, the
> microcontroller linked as slave implements a protocol that must follow
> strict timing constraints. I need to receive and send messages every 6msec.
> Actually there is a user space program that synchronizes the two units, but
> I would prefer to eliminate it and move the relative code into the kernel
> space. Is it possible to have a non returning function, with a sort of
> while(1) inside?
>
> Thanks for the help
You can use a kernel thread.
I'm not sure how accurate this is, but here is some information about them:
http://www.linuxquestions.org/linux/articles/Technical/Linux_Kernel_Thread
More information about the Linuxppc-dev
mailing list