Re: Copying kernel module error messages to userspace

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Monday, September 14, 2009 10:07:58 Leonidas . wrote:
> When we do a printk it writes to kernel log buffer, correct? This is
>  real in time operation i.e. as soon as we do a
> printk the messages get logged. Now this log file can be accesses
>  from /var/log/messages right? How is this done?
> 
> I want to so something similar, so I can log my messages to a seprate
>  file which is going to stay around so user can
> see at across reboots as well.

You could set up a new logging facility for your kernel module, and use 
the system logger to log everything from that facility to a separate 
file. Why wouldn't this work for you?

Regards,
Lori

Attachment: signature.asc
Description: This is a digitally signed message part.


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux