From owner-cvs-src@FreeBSD.ORG Thu Oct 16 02:16:29 2003 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AF31816A4BF; Thu, 16 Oct 2003 02:16:29 -0700 (PDT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3916343F93; Thu, 16 Oct 2003 02:16:29 -0700 (PDT) (envelope-from dfr@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.9/8.12.9) with ESMTP id h9G9GSXJ067983; Thu, 16 Oct 2003 02:16:28 -0700 (PDT) (envelope-from dfr@repoman.freebsd.org) Received: (from dfr@localhost) by repoman.freebsd.org (8.12.9/8.12.9/Submit) id h9G9GSqQ067982; Thu, 16 Oct 2003 02:16:28 -0700 (PDT) (envelope-from dfr) Message-Id: <200310160916.h9G9GSqQ067982@repoman.freebsd.org> From: Doug Rabson Date: Thu, 16 Oct 2003 02:16:28 -0700 (PDT) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/sys bus.h kobj.h param.h src/sys/kern subr_bus.c subr_kobj.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Oct 2003 09:16:29 -0000 dfr 2003/10/16 02:16:28 PDT FreeBSD src repository Modified files: sys/sys bus.h kobj.h param.h sys/kern subr_bus.c subr_kobj.c Log: * Add multiple inheritance to kobj. Each class can have zero or more base classes and if a method is not found in a given class, its base classes are searched (in the order they were declared). This search is recursive, i.e. a method may be define in a base class of a base class. * Change the kobj method lookup algorithm to one which is SMP-safe. This relies only on the constraint that an observer of a sequence of writes of pointer-sized values will see exactly one of those values, not a mixture of two or more values. This assumption holds for all processors which FreeBSD supports. * Add locking to kobj class initialisation. * Add a simpler form of 'inheritance' for devclasses. Each devclass can have a parent devclass. Searches for drivers continue up the chain of devclasses until either a matching driver is found or a devclass is reached which has no parent. This can allow, for instance, pci drivers to match cardbus devices (assuming that cardbus declares pci as its parent devclass). * Increment __FreeBSD_version. This preserves the driver API entirely except for one minor feature used by the ISA compatibility shims. A workaround for ISA compatibility will be committed separately. The kobj and newbus ABI has changed - all modules must be recompiled. Revision Changes Path 1.133 +102 -66 src/sys/kern/subr_bus.c 1.8 +155 -33 src/sys/kern/subr_kobj.c 1.56 +13 -32 src/sys/sys/bus.h 1.9 +105 -31 src/sys/sys/kobj.h 1.172 +1 -1 src/sys/sys/param.h