Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 25 Aug 1997 23:24:50 -0700 (PDT)
From:      Simon Shapiro <Shimon@i-Connect.Net>
To:        Mark Tinguely <tinguely@plains.NoDak.edu>
Cc:        FreeBSD-Hackers@FreeBSD.ORG
Subject:   Re: Calling a Daemon from the Kernel - How?
Message-ID:  <XFMail.970825232450.Shimon@i-Connect.Net>
In-Reply-To: <199708252318.SAA13305@plains.NoDak.edu>

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

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




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