Re: [patch] kernel events layer

James Morris
2004-07-24T20:22:55Z

On Sat, 24 Jul 2004, Robert Love wrote:

> +static int kevent_init(void)
> +{
> + kevent_sock = netlink_kernel_create(NETLINK_KEVENT, netlink_receive);

Consider a NULL netlink_receive function, as you're dropping any received
messages. This will provide better interface semantics e.g. connection
refused message on message transmission to kernel.

- James
--
James Morris
<jmorris@redhat.com>