From owner-freebsd-hackers Mon Aug 25 14:53:30 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id OAA13229 for hackers-outgoing; Mon, 25 Aug 1997 14:53:30 -0700 (PDT) Received: from sendero-ppp.i-connect.net (sendero-ppp.i-Connect.Net [206.190.143.100]) by hub.freebsd.org (8.8.7/8.8.7) with SMTP id OAA13217 for ; Mon, 25 Aug 1997 14:53:26 -0700 (PDT) Received: (qmail 2030 invoked by uid 1000); 25 Aug 1997 21:53:44 -0000 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 Date: Mon, 25 Aug 1997 14:53:44 -0700 (PDT) Organization: Atlas Telecom From: Simon Shapiro To: FreeBSD-Hackers@FreeBSD.ORG Subject: Calling a Daemon from the Kernel - How? Sender: owner-freebsd-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Hi Y'all; 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. In Linux, there is a kerneld with its attendant protocol. In other O/S's I had a messy procedure that posts a read to the device, waiting to be called. As soon as it is called, it posts another READ. One can get fancy with this, but the serializing implied by this mechanism is not always a bad thing. Any ideas or suggestions are very welcome. Simon