From: "Grant Likely" <grant.likely@secretlab.ca>
To: "Paolo Doz" <paolo.doz@gmail.com>
Cc: linuxppc-dev@ozlabs.org
Subject: Re: While(1) in kernel space
Date: Tue, 8 Jul 2008 08:19:00 -0600 [thread overview]
Message-ID: <fa686aa40807080719r4b7b01f7n7863fe1456a3e64@mail.gmail.com> (raw)
In-Reply-To: <5468b7f30807080055p69571979i9a565653e523c2c0@mail.gmail.com>
On Tue, Jul 8, 2008 at 1:55 AM, Paolo Doz <paolo.doz@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
next prev parent reply other threads:[~2008-07-08 14:19 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-07-08 7:55 While(1) in kernel space Paolo Doz
2008-07-08 14:19 ` Grant Likely [this message]
2008-07-08 14:45 ` Arnd Bergmann
2008-07-08 14:47 ` Grant Likely
2008-07-08 20:53 ` Paolo Doz
2008-07-08 14:44 ` Chris Friesen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=fa686aa40807080719r4b7b01f7n7863fe1456a3e64@mail.gmail.com \
--to=grant.likely@secretlab.ca \
--cc=linuxppc-dev@ozlabs.org \
--cc=paolo.doz@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).