2003-07-09 06:04:14

by Andrey Borzenkov

[permalink] [raw]
Subject: printk in atomic context


Is it possible (safe) to use printk in atomic context, i.e. under
spinlock or inside of preemption-disabled region?

The same question about 2.4 (here I guess only spinlock?)

TIA

-andrey


2003-07-09 06:44:50

by Zwane Mwaikambo

[permalink] [raw]
Subject: Re: printk in atomic context

On Wed, 9 Jul 2003, [koi8-r] "Andrey Borzenkov[koi8-r] " wrote:

>
> Is it possible (safe) to use printk in atomic context, i.e. under
> spinlock or inside of preemption-disabled region?
>
> The same question about 2.4 (here I guess only spinlock?)

Yes you can, it's rather robust.

--
function.linuxpower.ca