Date: Mon, 1 Oct 2001 13:15:11 -0700 (PDT) From: Warner Losh <imp@FreeBSD.org> To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/sys conf.h param.h Message-ID: <200110012015.f91KFB722448@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
imp 2001/10/01 13:15:11 PDT Modified files: sys/sys conf.h param.h Log: Add d_thread_t. This is a typedef for struct thread in -current and will be one for struct proc in stable. those drivers needing to have cross version portability should use d_thread_t instead of inventing their own means. Non-drivers, and drivers that either only run on -current or must look under the covers of the struct proc/thread should must not use this. As noted in arch@, this minorly violates style(9), but the sys/conf.h devsw already violates this and all I'm doing is extending the violation to ease the burdon on device driver writers. It was judged that this minor violation, which doesn't impact userland or those people not using it, was preferable to the alternatives (eg #define proc thread). C does not allow a way to rename or alias structs easily, so we fall back to using a typedef. Bump FreeBSD_version to reflect this change (porters guide to be done in a separate commit). Revision Changes Path 1.134 +24 -6 src/sys/sys/conf.h 1.104 +2 -2 src/sys/sys/param.h To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200110012015.f91KFB722448>