Re: upcalls from kernel code to user space daemons

From: H. Peter Anvin
Date: Fri Jun 18 2004 - 18:27:57 EST


Followup to: <1087236468.10367.27.camel@xxxxxxxxxxxxxxxxxxxxxxx>
By author: Steve French <smfltc@xxxxxxxxxx>
In newsgroup: linux.dev.kernel
>
> Is there a good terse example of an upcall from a kernel module (such as
> filesystem) to an optional user space helper daemon? The NFS RPC
> example seems more complicated than what I would like as does the
> captive ioctl approach which I see in a few places.
>

autofs does this by having the kernel write to the write-end of a
pipe, and have the userspace daemon read from the read end of the same
pipe.

The same thing can be done with sockets.

-hpa

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