writes to /dev/kmsg

Bjørn Mork bjorn at mork.no
Tue Feb 19 09:01:26 EST 2019


Lev Olshvang <levonshe at yandex.com> writes:

> Kernel documentation describes interface
> https://www.kernel.org/doc/Documentation/ABI/testing/dev-kmsg
>  
> I wonder what kind of applications use it?
> Why somebody need to use kmsg instead of syslog?
>  
> Can anybody give example of such application?

Can't answer your first two good questions.  But here is a well known
example application:
https://github.com/systemd/systemd/blob/master/src/basic/log.c#L109



Bjørn



More information about the Kernelnewbies mailing list