From owner-freebsd-hackers Mon Jun 10 10:45:55 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from web21106.mail.yahoo.com (web21106.mail.yahoo.com [216.136.227.108]) by hub.freebsd.org (Postfix) with SMTP id A772F37B405 for ; Mon, 10 Jun 2002 10:45:51 -0700 (PDT) Message-ID: <20020610174547.19800.qmail@web21106.mail.yahoo.com> Received: from [62.254.0.5] by web21106.mail.yahoo.com via HTTP; Mon, 10 Jun 2002 10:45:47 PDT Date: Mon, 10 Jun 2002 10:45:47 -0700 (PDT) From: Hiten Pandya Reply-To: hiten@uk.FreeBSD.org Subject: Re: kernel thread To: Andy Sporner , Ferruccio Vitale Cc: freebsd-hackers@FreeBSD.ORG In-Reply-To: <3D04A47F.5070803@nentec.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --- Andy Sporner 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