Date: Mon, 23 Oct 2000 23:02:16 +0200 From: Poul-Henning Kamp <phk@critter.freebsd.dk> To: John Baldwin <jhb@FreeBSD.ORG> Cc: freebsd-smp@FreeBSD.ORG, mjacob@feral.com Subject: Re: cvs commit: src/sys/sys mutex.h Message-ID: <14128.972334936@critter> In-Reply-To: Your message of "Mon, 23 Oct 2000 11:44:36 PDT." <XFMail.001023114436.jhb@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
In message <XFMail.001023114436.jhb@FreeBSD.org>, John Baldwin writes: >> I think a function to get the current thread/proc should not require >> <sys/proc.h> to be included, most places just need to pass a reference, >> they don't need to even know how the entrails of a proccess is >> arranged, so obviously they should not need <sys/proc.h> #included.\ > >I have to have the type. The function returns a type. You can do that simply with: struct proc; struct proc *getcurproc(); You don't need the contents of a struct fiddle a pointer to it. -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-smp" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?14128.972334936>