On Wed, Aug 18, 1999 at 12:44:04PM +0000, Vicente Palazon Gonzalez wrote:
> Hello:
>
> I want to ask you if in the code of a hanler the instruction 'printk'
> can be executed without problems.
>
no. It tries to grab the console spinlock, the log spinlock, and also calls
wake_up_interruptible(). Bad choice of functions to call from rtlinux.
On a uniprocessor system, it will work most of the time, but sometimes it
will silently corrupt the run queue. Actually, it won't be silent, since
your computer will quickly crash afterwards. On an SMP system, you will
get deadlocks.
You can use "rtl_printf()", but that only appears on a VGA console, not
in an X console, on a serial console, or in the log files. It's pretty
limited, but it Works Correctly(tm).
Check the archives for a little rt_printk patch I posted a few weeks/months
ago. It allows you to log messages to the kernel log. One problem with
it is that it might get log messages out of order.
dave...
--- [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/