Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 26 Aug 1997 19:15:22 +0200 (MET DST)
From:      Wilko Bulte <wilko@yedi.iaf.nl>
To:        tinguely@plains.NoDak.edu (Mark Tinguely)
Cc:        FreeBSD-Hackers@FreeBSD.ORG, Shimon@i-Connect.Net
Subject:   Re: Calling a Daemon from the Kernel - How?
Message-ID:  <199708261715.TAA00851@yedi.iaf.nl>
In-Reply-To: <199708252318.SAA13305@plains.NoDak.edu> from "Mark Tinguely" at Aug 25, 97 06:18:11 pm

next in thread | previous in thread | raw e-mail | index | archive | help
As Mark Tinguely 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).
> 
> 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.

Or implement a ioctl that is called by the userspace thingy and get's
blocked in the ioctl code until needed.

Not nice, but works
_     ____________________________________________________________________
 |   / o / /  _  Bulte  email: wilko@yedi.iaf.nl http://www.tcja.nl/~wilko
 |/|/ / / /( (_) Arnhem, The Netherlands - Do, or do not. There is no 'try'
----------------------------------------------------------------------Yoda



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199708261715.TAA00851>