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.


Comments

Popular posts from this blog

c# - Binding a comma separated list to a List<int> in asp.net web api -

dns - Dokku server hosts two sites with TLD's, both domains are landing on only one app -

Delphi 7 and decode UTF-8 base64 -