Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 06 Feb 2000 20:53:33 -0800
From:      Jake Burkholder <jake@io.yi.org>
To:        Zhihui Zhang <zzhang@cs.binghamton.edu>
Cc:        freebsd-hackers@FreeBSD.ORG, arla-drinkers@stacken.kth.se
Subject:   Re: Writing a multithreaded daemon process 
Message-ID:  <200002070453.UAA46328@io.yi.org>
In-Reply-To: Your message of "Sun, 06 Feb 2000 14:46:31 EST." <Pine.GSO.3.96.1000206142832.1751A-100000@sol.cs.binghamton.edu> 

next in thread | previous in thread | raw e-mail | index | archive | help
> If the daemon can somehow reside entirely inside the kernel, like NFS
> daemon, we can save those crossings.  But the daemon is a multi-threaded
> process and we have no kernel thread yet, so I do not know how to do
> better if possible.  Maybe all user filesystems have to live with this
> limitation.

There's kernel threads and then there's kernel threads.

kthread_create (see sys/kern/kern_kthread.c) will create a new process
which shares it's address space with the kernel; that might be what you
want.



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




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