linux - How to read the kernel log messages in c? -
i want develop c function return last 5 messages of kernel log (dmesg).
how can that?
i think want klogctl
. example of usage in busybox source dmesg.c.
i want develop c function return last 5 messages of kernel log (dmesg).
how can that?
i think want klogctl
. example of usage in busybox source dmesg.c.
Comments
Post a Comment