(unknown)
Hi all,
How I can disable printk() output bufferization ? I need that printk() prints symbol-by-symbol or line-by-line.
Thank you.
Signature · 9 lines
Regards, Alexei Babich, chematic engineer, OOO NPP "Rezonans", Chelyabinsk, Russia http://www.rez.ru Jabber ID: [email protected] -- To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.linux-learn.org/faqs
Re:
Quoted 3 lines · Alexei Babich
Hi all,
How I can disableprintk()output bufferization ? I need thatprintk()prints symbol-by-symbol or line-by-line.
Check this out - since it has similar embedded requirements like yours (what is a chematic engineer?):
http://tree.celinuxforum.org/pipermail/celinux-dev/2006-July/001261.html
Read the comments part of kernel/printk.c - printk() is an amazing function, because it can be called in ANY CONTEXT.....which also means
that it cannot sleep. But since u know many I/O function involved
some form of waiting, therefore printk() necessarily HAVE TO WRITE TO A BUFFER, and it only write to the screen/console whenever it is allowed to sleep (which involved holding a console semaphore).
In short, printk() sometimes will output to screen directly, esp when
u are not in the interrupt context. Otherwise it may just buffer for
later delivery.
Quoted 7 lines
Thank you.
--
Regards,
Alexei Babich, chematic engineer, OOO NPP "Rezonans", Chelyabinsk, Russia
http://www.rez.ru
Jabber ID: [email protected]
--
Signature · 7 lines
Regards, Peter Teoh -- To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.linux-learn.org/faqs
Re:
Quoted 2 lines
Check this out - since it has similar embedded requirements like yours (what is a chematic engineer?):
I ment circuit, not schematic, and that's a misprint in addition :)
Thank you for link.
Quoted 6 lines
Read the comments part of
kernel/printk.c-printk()is an amazing function, because it can be called in ANY CONTEXT.....which also means
that it cannot sleep. But since u know many I/O function involved
some form of waiting, thereforeprintk()necessarily HAVE TO WRITE TO A BUFFER,
OK, I need decrease buffer depth.
Thank you.
Signature · 9 lines
Regards, Alexei Babich, circuit engineer, OOO NPP "Rezonans", Chelyabinsk, Russia http://www.rez.ru Jabber ID: [email protected] -- To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.linux-learn.org/faqs
how to find when a symbol introduced into the kernel
Hi all
To write multiple kernel version compatible programs, I need to know when a specific symbol (a struct or a function)were introduced in to the kernel tree
Binary search against multiple kernel sources is a way,but is still slow.Is there any fast way to use modern git technology to make my life easier?
Many thanks.
Best Regards
Zhaohui Wang
Quoted 26 lines
-----Original Message-----
From: [email protected] [mailto:linux-newbie- [email protected]] On Behalf Of Alexei Babich
Sent: Friday, May 30, 2008 7:06 AM
To: [email protected]
Subject: Re:Quoted 1 line
Check this out - since it has similar embedded requirements like
yours
Quoted 1 line
(what is a chematic engineer?):
I ment circuit, not schematic, and that's a misprint in addition :)
July/001261.html
Thank you for link.Quoted 3 lines
Read the comments part of
kernel/printk.c-printk()is an amazing function, because it can be called in ANY CONTEXT.....which alsomeans
Quoted 3 lines
that it cannot sleep. But since u know many I/O function involved
some form of waiting, thereforeprintk()necessarily HAVE TO WRITE TO A BUFFER,OK, I need decrease buffer depth.
Thank you.
Quoted 12 lines
--
Regards,
Alexei Babich, circuit engineer, OOO NPP "Rezonans", Chelyabinsk, Russia
http://www.rez.ru
Jabber ID: [email protected]
--
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
--
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs