Date: Fri, 23 Nov 2001 08:06:13 -0800 (PST) From: John Baldwin <jhb@FreeBSD.org> To: Mike Smith <msmith@freebsd.org> Cc: Julian Elischer <julian@elischer.org>, arch@FreeBSD.org, Steve Kargl <sgk@troutmask.apl.washington.edu> Subject: Re: Kernel Thread scheduler Message-ID: <XFMail.011123080613.jhb@FreeBSD.org> In-Reply-To: <200111221142.fAMBgvh11425@mass.dis.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <jhb@FreeBSD.org> <>< 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?XFMail.011123080613.jhb>