Re: A question about communication between kernel, daemon

Chris Wedgwood (chris@cybernet.co.nz)
Fri, 21 Aug 1998 09:07:56 +1200


On Thu, Aug 20, 1998 at 11:05:29AM -0700, Cook Dan wrote:

> I have a question about the communication between Linux kernel, and
> one daemon on that host. What is the better way to let kernel inform
> a daemon something happened. I know signal should work, But somehow
> I do not want to use it. I did not use unix socket before, But since
> unix socket will use a file, It seems it can not be used in kernel.
>
> The problem I ran into looks like this:
>
> Kernel receive a message, this message is not aimed to one application,
> but the kernel needs to handle it, and will pass
> this message to a daemon after the kernel handling. And daemon
> will also handle this message.

See the netlink stuff and associated options, linux/net/netlink/,
grep linux/net/*/* for NETLINK, etc.

-cw

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.altern.org/andrebalsa/doc/lkml-faq.html