From owner-freebsd-current@FreeBSD.ORG Fri Jun 11 06:16:21 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6138816A4CE for ; Fri, 11 Jun 2004 06:16:21 +0000 (GMT) Received: from critter.freebsd.dk (critter.freebsd.dk [212.242.86.163]) by mx1.FreeBSD.org (Postfix) with ESMTP id 70D8E43D2F for ; Fri, 11 Jun 2004 06:16:20 +0000 (GMT) (envelope-from phk@phk.freebsd.dk) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.12.11/8.12.11) with ESMTP id i5B6G8Gt069021 for ; Fri, 11 Jun 2004 08:16:08 +0200 (CEST) (envelope-from phk@phk.freebsd.dk) To: current@freebsd.org From: Poul-Henning Kamp Date: Fri, 11 Jun 2004 08:16:08 +0200 Message-ID: <69020.1086934568@critter.freebsd.dk> Subject: kernel dev_t elimination patch for review X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Jun 2004 06:16:21 -0000 http://phk.freebsd.dk/patch/dev_t.patch This patch changes "dev_t" in the kernel to "struct cdev *" and is 337K of boredom like: -static dev_t perfdev; +static struct cdev *perfdev; People who maintain cross-platform or cross-version source code in the kernel, should take a close look at this patch. If you don't like the way I have done it (which is mostly automated) you are more than welcome to commit your own patch, all you have to do is use "struct cdev *" instead of "dev_t", and you can do that already now. In about a week or so, I will commit the remaining bits of this patch. -- 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.