Re: printk not thread safe, buf is static

Pavel Machek (pavel@atrey.karlin.mff.cuni.cz)
Thu, 16 Apr 1998 15:51:32 +0200


Hi!

> The buffer used by printk() is static so, for example, if while printk()
> is running an interrupt will happen and its interrupt handler will use
> printk() too, the first printk() will not run as expected. Maybe this can
> happen also in a SMP machine (in 2.1.x kernel of course).

I think that that is known limitation. What worse can happen?
Corrupted messages? Solve it when it happens.

Pavel

-- 
The best software in life is free (not shareware)!		Pavel
GCM d? s-: !g p?:+ au- a--@ w+ v- C++@ UL+++ L++ N++ E++ W--- M- Y- R+

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu