[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [rtl] using fifo in kernel space.



On Mon, Dec 03, 2001 at 05:03:27PM -0800, Robert Kavaler wrote:
> You can think of the non-rt kernel as the idle task for the rt kernel. 
>  So, you can use all of the rt fifo commands without any problems 
> (rtf_put, rtf_get, the posix interface, etc.), you just may get 
> preempted by rt kernel since you are the low priority guy.  Note the the 
> fifo stuff is designed to handle preemption since it hard disables 
> interrupts.  I use fifos in the kernel all the time interfacing to the 
> networking code.

    Is this strictly true?  Given that the kernel _is_ the lowest-
    priority RT-task, it should be, but I seem to recall some caveats
    regarding not being able to call certain RT-Linux routines from the
    (non-RT) kernel.  (One example: pthread_wakeup_np()).

Regards,
Eric

-- 
After all is said and done, a hell of a lot more is said than done.

Eric Peterson WB6PYK (805)370-3046 mailto:ericp@troikanetworks.com
    http://www.troikanetworks.com