Results 1 to 2 of 2
Hi Experts,
My program is running on a openwrt linux box. What is the system call used for reading kernel messages.
I have tried "logread -f", it reads the logs ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 10-19-2009 #1Just Joined!
- Join Date
- Oct 2009
- Posts
- 3
command for read kernel message
Hi Experts,
My program is running on a openwrt linux box. What is the system call used for reading kernel messages.
I have tried "logread -f", it reads the logs from syslogd, which includes logs from user-space applications also. But i need only kernel message, recorded by klogd. Can you please give some idea.
Thanks
Annada
- 07-02-2010 #2Just Joined!
- Join Date
- Jul 2010
- Posts
- 2
Hi,
I think you can use the system call klogctl().
Just go through "man klogctl" it is used to read/clear kernel message ring buffer.
Regards,
-Krishna


Reply With Quote
