Date: Mon, 10 Jun 2002 10:45:47 -0700 (PDT) From: Hiten Pandya <hitmaster2k@yahoo.com> To: Andy Sporner <sporner@nentec.de>, Ferruccio Vitale <freebsd@cs.tin.it> Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: kernel thread Message-ID: <20020610174547.19800.qmail@web21106.mail.yahoo.com> In-Reply-To: <3D04A47F.5070803@nentec.de>
next in thread | previous in thread | raw e-mail | index | archive | help
--- Andy Sporner <sporner@nentec.de> wrote: > My fault. I am using 5.0 > man shutdown_kproc Ok, I cant find any man page called shutdown_kproc in either 4.3 or 4.4. Anyway, he wants to destroy a "thread", and not an "internal" daemon/process. To destroy a kernel thread, you need to make use of the kthread_exit() operation. It is prototyped as follows: void kthread_exit(ecode); The *ecode* arg to kthread_exit() is used to specify the return code of the thread which you are going to terminate. Additonal Information can be found from: kthread(9) -- (available in FreeBSD 5.0) sys/kthread.h HTH. Hiten hiten@uk.FreeBSD.org, hiten@xMach.org __________________________________________________ Do You Yahoo!? Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.yahoo.com 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?20020610174547.19800.qmail>