From owner-cvs-all@FreeBSD.ORG Mon Sep 27 18:55:43 2004 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1610416A4D0 for ; Mon, 27 Sep 2004 18:55:43 +0000 (GMT) Received: from mail1.speakeasy.net (mail1.speakeasy.net [216.254.0.201]) by mx1.FreeBSD.org (Postfix) with ESMTP id C75DB43D4C for ; Mon, 27 Sep 2004 18:55:42 +0000 (GMT) (envelope-from jhb@FreeBSD.org) Received: (qmail 30046 invoked from network); 27 Sep 2004 18:55:42 -0000 Received: from dsl027-160-063.atl1.dsl.speakeasy.net (HELO server.baldwin.cx) ([216.27.160.63]) (envelope-sender ) encrypted SMTP for ; 27 Sep 2004 18:55:41 -0000 Received: from [10.50.40.210] (gw1.twc.weather.com [216.133.140.1]) (authenticated bits=0) by server.baldwin.cx (8.12.11/8.12.11) with ESMTP id i8RIsVXx014057; Mon, 27 Sep 2004 14:55:37 -0400 (EDT) (envelope-from jhb@FreeBSD.org) From: John Baldwin To: Joerg Wunsch Date: Mon, 27 Sep 2004 11:19:32 -0400 User-Agent: KMail/1.6.2 References: <200409241958.i8OJwm8Y051147@repoman.freebsd.org> <200409241633.06963.jhb@FreeBSD.org> <20040924225503.D96751@uriah.heep.sax.de> In-Reply-To: <20040924225503.D96751@uriah.heep.sax.de> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200409271119.32409.jhb@FreeBSD.org> X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on server.baldwin.cx cc: cvs-src@FreeBSD.org cc: src-committers@FreeBSD.org cc: cvs-all@FreeBSD.org Subject: Re: cvs commit: src/share/man/man9 kthread.9 X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Sep 2004 18:55:43 -0000 On Friday 24 September 2004 04:55 pm, Joerg Wunsch wrote: > As John Baldwin wrote: > > It's not the thread handle, it's the proc pointer: > > > > /* > > * If this is a kthread, then wakeup anyone waiting for it to > > exit. */ > > if (p->p_flag & P_KTHREAD) > > wakeup(p); > > Isn't that the "thread handle" in case the proc is actually a thread? No, the thread handle would be 'wakeup(curthread)' or some such. We don't currently have any multithreaded "kthreads" (they are really kernel processes right now, not threads) so this works for some value of work for now. -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve" = http://www.FreeBSD.org