From owner-freebsd-current@freebsd.org Mon Aug 21 11:51:50 2017 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id DE23EDD5419 for ; Mon, 21 Aug 2017 11:51:50 +0000 (UTC) (envelope-from julian@freebsd.org) Received: from vps1.elischer.org (vps1.elischer.org [204.109.63.16]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "vps1.elischer.org", Issuer "CA Cert Signing Authority" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id BC6A06C22E for ; Mon, 21 Aug 2017 11:51:50 +0000 (UTC) (envelope-from julian@freebsd.org) Received: from Julian-MBP3.local (106-68-135-200.dyn.iinet.net.au [106.68.135.200]) (authenticated bits=0) by vps1.elischer.org (8.15.2/8.15.2) with ESMTPSA id v7LBpjSc092719 (version=TLSv1.2 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO) for ; Mon, 21 Aug 2017 04:51:48 -0700 (PDT) (envelope-from julian@freebsd.org) To: freebsd-current From: Julian Elischer Subject: mapping a device from device-id to /dev Message-ID: Date: Mon, 21 Aug 2017 19:51:39 +0800 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.23 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: Mon, 21 Aug 2017 11:51:51 -0000 I have the following (Azure) device (disk) id: dev.storvsc..%pnpinfo: classid=32412632-86cb-44a2-9b5c-50d1417354f5 deviceid=00000000-0001-8899-0000-000000000000 the question is: "how can I map that do /dev/da1".. I know that for my device it IS /dev/da1 but how can I prove it? there are so many mappings from one space to another I've totally lost track. there are acpi mappings, pnpmappngs, /dev/ mappings, PCI space mappings, things in sysctl, things in their own spaces, etc. etc. In some architectures htere are fdt mappings and in some it's still pretty random from what I see. Is there a document that covers all of these?