Find the answer to your Linux question:
Results 1 to 2 of 2
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    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.


  2. #2

    I think you can use the system call klogctl().
    Just go through "man klogctl" it is used to read/clear kernel message ring buffer.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts