From owner-freebsd-arch Fri Nov 23 8: 6:27 2001 Delivered-To: freebsd-arch@freebsd.org Received: from mail5.speakeasy.net (mail5.speakeasy.net [216.254.0.205]) by hub.freebsd.org (Postfix) with ESMTP id 1620A37B418 for ; Fri, 23 Nov 2001 08:06:15 -0800 (PST) Received: (qmail 4400 invoked from network); 23 Nov 2001 16:06:13 -0000 Received: from unknown (HELO laptop.baldwin.cx) ([64.81.54.73]) (envelope-sender ) by mail5.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 23 Nov 2001 16:06:13 -0000 Message-ID: X-Mailer: XFMail 1.4.0 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <200111221142.fAMBgvh11425@mass.dis.org> Date: Fri, 23 Nov 2001 08:06:13 -0800 (PST) From: John Baldwin To: Mike Smith Subject: Re: Kernel Thread scheduler Cc: Julian Elischer , arch@FreeBSD.org, Steve Kargl Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On 22-Nov-01 Mike Smith wrote: >> >> Perhaps if 'proc' is put under _KERNEL. Since proc embeds a kse, ksegroup, >> and thread, it can't very easily be defined w/o including those definitions. > >#ifdef _KERNEL >#define PROC_THREAD struct thread >#else >#define PROC_THREAD void >#endif > > > PROC_THREAD *p_thread; > > etc. You get my drift. > > Exposing something called "struct thread" is just stupid, guys. You > ought to know better than this by know; at the very least it should have > been k_thread. So is something called "struct proc" for that matter. Your example doesn't work howver, since proc doesn't include a pointer, it includes an actual structure. -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message