Re: alternate event logging proposal

Tim Hockin (thockin@sun.com)
Tue, 24 Sep 2002 13:54:19 -0700


Jeff Garzik wrote:
> In existing drivers that call netif_carrier_{on,off}, it is perhaps even
> possible to have them send netlink messages with no driver-specific code
> changes at all.

This is something that I have been asked to look at, here. Jeff, how
(or is?) any of the netlink info pushed up to userspace? The idea that
someone came to me with was to have something in (driverfs? netdevfs?)
that was poll()able and read()able. read() giving current state, and
poll() waking on changes. Or maybe two different files, but something.
Of course it'd be greate to be generic. I just assumed it would come
from netif_* for netdevices.

Is this something planned? wanted? something I should bang out into
2.5.x before end of next month?

We could have a generic device-events file (akin to acpi events) that a
daemon dispatches events into user-land, or we could have a kernel->user
callback a la /sbin/hotplug, or we could have many device/subsys
specific files.

Anyone have a preference?

Tim

-- 
Tim Hockin
Systems Software Engineer
Sun Microsystems, Linux Kernel Engineering
thockin@sun.com

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/