From owner-freebsd-current@FreeBSD.ORG Sun Jan 11 11:49:17 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 025B216A4CE for ; Sun, 11 Jan 2004 11:49:17 -0800 (PST) Received: from critter.freebsd.dk (critter.freebsd.dk [212.242.86.163]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8420D43D54 for ; Sun, 11 Jan 2004 11:49:15 -0800 (PST) (envelope-from phk@phk.freebsd.dk) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.12.10/8.12.10) with ESMTP id i0BJnDOl015380 for ; Sun, 11 Jan 2004 20:49:13 +0100 (CET) (envelope-from phk@phk.freebsd.dk) To: current@freebsd.org From: Poul-Henning Kamp Date: Sun, 11 Jan 2004 20:49:13 +0100 Message-ID: <15379.1073850553@critter.freebsd.dk> Subject: HEADSUP: sound patch to eliminate makedev() 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: Sun, 11 Jan 2004 19:49:17 -0000 http:phk.freebsd.dk/patch/sound.patch This patch has been posted previously, it is written by cg@ and I have been sitting on it for a long time. Now with 5.2 out of the door, it's time to get it in. This patch eliminates the use of makedev() in the sound code, instead relying on keeping track of the dev_t's created, just like all other nice playing code. Once this is committed, and any other remaining stray makedev() calls have been converted, we can start to refcount dev_t's which amongst other things will make it a lot easier to figure out when drivers can safely be unloaded. I'll commit this patch next sunday, unless there are reasons not to. Poul-Henning -- 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.