linux app read kernel log (klogctl()) linux app read kernel log int klogctl(int type, char *bufp, int len); man klogctl: ...