[ Date Index ][
Thread Index ]
[ <= Previous by date /
thread ]
[ Next by date /
thread => ]
On Wednesday 11 August 2004 14:48, Andrew Rogers wrote:
I have a kernel module that must output a lot of info, a few megabytes.
As I can't write to a file from a kernel module I write the output to /var/log/messages using printk().
The problem is that after I have called printk() a few thousand times it stops printting to /var/log/messages and restarts printting some time later. It is verylikely that I am calling printk too often in a short time interval.
How can I ensure that printk() has output to /var/log/messages before calling printk() again?
I don't think you can.
I've just had a look at printk(). You'll be disappointed at the size of the log buffer(s) :
#define LOG_BUF_LEN (16384) /* This must be a power of two */
So - you can either :
1) write a new version of printk with sensible buffer handling :-),
(this is usually where someone comes along and offers a brilliantly simple solution that I haven't thought of ...)
-- The Mailing List for the Devon & Cornwall LUG Mail majordomo@xxxxxxxxxxxx with "unsubscribe list" in the message body to unsubscribe.