Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 25 Aug 1997 17:05:41 -0700 (PDT)
From:      Tom Samplonius <tom@sdf.com>
To:        Mark Tinguely <tinguely@plains.NoDak.edu>
Cc:        FreeBSD-Hackers@freebsd.org, Shimon@i-Connect.Net
Subject:   Re: Calling a Daemon from the Kernel - How?
Message-ID:  <Pine.BSF.3.95q.970825170437.24159B-100000@misery.sdf.com>
In-Reply-To: <199708252318.SAA13305@plains.NoDak.edu>

next in thread | previous in thread | raw e-mail | index | archive | help

On Mon, 25 Aug 1997, 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.

  I think syslog is better example.  It just hangs off /dev/log, and
processes messages from the kernel.

> --mark.
> 
> 

Tom




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.95q.970825170437.24159B-100000>