From owner-freebsd-arch@FreeBSD.ORG Thu Dec 20 20:04:59 2007 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 13D4816A419 for ; Thu, 20 Dec 2007 20:04:59 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe04.swip.net [212.247.154.97]) by mx1.freebsd.org (Postfix) with ESMTP id 9B81213C461 for ; Thu, 20 Dec 2007 20:04:58 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] Received: from [85.19.218.45] (account mc467741@c2i.net [85.19.218.45] verified) by mailfe04.swip.net (CommuniGate Pro SMTP 5.1.13) with ESMTPA id 737923474; Thu, 20 Dec 2007 20:04:55 +0100 From: Hans Petter Selasky To: freebsd-arch@freebsd.org Date: Thu, 20 Dec 2007 20:05:32 +0100 User-Agent: KMail/1.9.7 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200712202005.33263.hselasky@c2i.net> Cc: Poul-Henning Kamp , Alfred Perlstein Subject: More leaves on the device tree ? X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 Dec 2007 20:04:59 -0000 Hi, I'm currently working on USB and I have been thinking about a simple way to find what devices an USB device creates, and how to easily present that information to the user. I know there is "devinfo" and I would like to extend this utility to also show which devices under /dev belongs to the device. Implementation: "make_dev" takes an additional "device_t parent_device" argument and creates a child device with some magic flags set. Any comments ? --HPS