Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 25 Aug 1997 18:18:11 -0500 (CDT)
From:      Mark Tinguely <tinguely@plains.NoDak.edu>
To:        FreeBSD-Hackers@FreeBSD.ORG, Shimon@i-Connect.Net
Subject:   Re: Calling a Daemon from the Kernel - How?
Message-ID:  <199708252318.SAA13305@plains.NoDak.edu>

next in thread | raw e-mail | index | archive | help
>  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.

--mark.



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