synchronous freebsd print

Eygene Ryabinkin rea-fbsd at codelabs.ru
Wed Feb 27 12:57:14 UTC 2008


Sanjeev,

Wed, Feb 27, 2008 at 03:00:46AM -0800, Sanjeev Kumar.S wrote:
> and Yes in the kernel code I have a "\n" at the end
> of my print, still the print is not complete and 
> the line next to it that causes the crash does
> not give the result I want. Is this a common
> scenario or am I doing something wrong.

If you're not defining PRINTF_BUFR_SIZE, then, judging by the
/sys/kern/subr_prf.c, output will be unbuffered in any case.  However,
kernel printf is not protected by locks, so it can be interrupted
by another thread, if I am correct.

May be ddb(4) will become your friend?
-- 
Eygene


More information about the freebsd-hackers mailing list