From owner-freebsd-current@FreeBSD.ORG Tue Jan 25 15:14:15 2005 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 4DA6016A4CF; Tue, 25 Jan 2005 15:14:15 +0000 (GMT) Received: from critter.freebsd.dk (f170.freebsd.dk [212.242.86.170]) by mx1.FreeBSD.org (Postfix) with ESMTP id 91E2443D41; Tue, 25 Jan 2005 15:14:14 +0000 (GMT) (envelope-from phk@critter.freebsd.dk) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.13.1/8.13.1) with ESMTP id j0PFDm5F086138; Tue, 25 Jan 2005 16:13:48 +0100 (CET) (envelope-from phk@critter.freebsd.dk) To: Robert Watson From: "Poul-Henning Kamp" In-Reply-To: Your message of "Tue, 25 Jan 2005 14:51:05 GMT." Date: Tue, 25 Jan 2005 16:13:48 +0100 Message-ID: <86137.1106666028@critter.freebsd.dk> Sender: phk@critter.freebsd.dk cc: pete@altadena.net cc: current@freebsd.org cc: "M. Warner Losh" Subject: Re: Devd event from GEOM? 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: Tue, 25 Jan 2005 15:14:15 -0000 In message , Robert Watson writes: >We're really not interested >in the newbus announcement, since there are lots of network interfaces >that have no physical representation and so aren't visible to newbus. I think this is the crux of the matter. newbus events will mostly be able tell us that we need to load a driver kld. devfs events on the other hand tells us that something can be accessed from userland. Since we added /dev/net/* we have sort of collapsed the split we previously had where some devices did not appear in /dev. There are still virtualized cases though, adding more hardware under opencrypto comes to mind. I can't really turn that into an example where we need to do more than respond to newbus by loading the driver. But as I said in the other email, we should probably have devfs communicate the type of device to devd to save some rather complex code in userland. (The regexp matching all our ethernet drivers in devd.conf have always irritated me). -- 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.