On Mon, Apr 10, 2000 at 11:21:40AM -0600, Michael M. Morrison wrote:
> [EMAIL PROTECTED] wrote:
> >
> > On Sat, Apr 08, 2000 at 11:15:27AM -0400, Joe Smith wrote:
> > >
> > > I know enough not to use printk from a rt process. What about a fifo
> > > i/o handler which is only triggered when the fifo is used from
> > > userland? It's somewhat academic, since I've already written the code
> > > and it seems to work, but I got to worrying about it.
> >
> > Don't worry. If you use Linux functions in Linux mode, you are ok.
> >
>
> This has actually been a question for me for some time. What is "legal"
> to do from a fifo handler? When the fifo handler is called, is it
> actually running in "Linux" mode or "RTLinux" mode?
> If it is safe to call 'printk' is it safe to call 'vmalloc' as well?
Fifo user handlers run in Linux kernel mode and you can call vmalloc
from them too. They are only invoked in the return part of a
read/write from user space.
--
---------------------------------------------------------
Victor Yodaiken
FSMLabs: www.fsmlabs.com www.rtlinux.com
FSMLabs is a servicemark and a service of
VJY Associates L.L.C, New Mexico.
-- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
---
For more information on Real-Time Linux see:
http://www.rtlinux.org/rtlinux/