From owner-cvs-all Mon Oct 1 13:15:16 2001 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id BDEEF37B40E; Mon, 1 Oct 2001 13:15:11 -0700 (PDT) Received: (from imp@localhost) by freefall.freebsd.org (8.11.4/8.11.4) id f91KFB722448; Mon, 1 Oct 2001 13:15:11 -0700 (PDT) (envelope-from imp) Message-Id: <200110012015.f91KFB722448@freefall.freebsd.org> From: Warner Losh Date: Mon, 1 Oct 2001 13:15:11 -0700 (PDT) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/sys conf.h param.h X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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