2002-09-24 20:24:13

by Larry Kessler

[permalink] [raw]
Subject: Re: [evlog-dev] Re: alternate event logging proposal

Jeff Garzik wrote:
>
> Chris Friesen wrote:
> > Also related is "how can userspace be notified of kernel events?". There
> > is no way for a userspace app to be notified that, for instance, an ATM
> > device got a loss of signal. The drivers print it out, but the
> > userspace app has no clue.
>
> (sorry for the second reply)
>
> To address your more general point, a general way to notify interested,
> credentialed (is that a word?) 3rd party processes of device events
> would indeed be useful. Since such events are essential out-of-band
> info, netlink might indeed be applicable.

Event Logging has both a command and an API for apps in user-space to
register for specific events (kernel or userspace). The user must have
read access to the log file and the proper credentials in the allow/deny
file scheme (that's modeled after crontab).

Larry Kessler
http://evlog.sourceforge.net/