Find the answer to your Linux question:
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.
  1. #1
    Just 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

  2. #2
    Just 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

Posting Permissions

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