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.