I want to know if there is a way, i can read the device file responsible for getting error messages from kernel. Please let me know if you have faced the same problem. I tried to use the system call klogctl(). But, it gives you the whole kernel ring buffer messages.
Thanks in advance.