From owner-freebsd-hackers Mon Aug 25 23:24:46 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id XAA13141 for hackers-outgoing; Mon, 25 Aug 1997 23:24:46 -0700 (PDT) Received: from sendero.i-connect.net (sendero-ppp.i-Connect.Net [206.190.143.100]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id XAA13118 for ; Mon, 25 Aug 1997 23:24:42 -0700 (PDT) Received: (from shimon@localhost) by sendero.i-connect.net (8.8.7/8.8.5) id XAA09715; Mon, 25 Aug 1997 23:24:52 -0700 (PDT) Message-ID: X-Mailer: XFMail 1.2-alpha [p0] on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit MIME-Version: 1.0 In-Reply-To: <199708252318.SAA13305@plains.NoDak.edu> Date: Mon, 25 Aug 1997 23:24:50 -0700 (PDT) Organization: Atlas Telecom From: Simon Shapiro To: Mark Tinguely Subject: Re: Calling a Daemon from the Kernel - How? Cc: FreeBSD-Hackers@FreeBSD.ORG Sender: owner-freebsd-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Hi Mark Tinguely; On 25-Aug-97 you wrote: > > How do I write a program that gets called from the kernel. > > I know how to write a program that call the kernel :-) > > I even know (some of you may argue with this) how to write a kernel > > driver > > that gets called form userspace :-) > > > > I want to write a daemon (or whatever) that gets called by the kernel > > to do > > sone dirty work I do not think belongs in the kernel. > > you really do not want the kernel to make a user space and exec (look at > the gross things the kernel needs to do to get init running). I didn't say that. I want a way to pass information, QUICKLY between the two, hopefully, with the kernel initiating the exchange. Asynchronously if possible, multi-threading? > it be easier to make a raw socket interface for the communication and > have the daemon start in user space from something like /etc/rc.local. > A good example of this is mrouted. mrouted, here I cone. Thanx! Simon