From: "David S. Miller" Date: Wed, 17 May 2006 20:40:42 +0000 Subject: Re: klibc and SPARC Message-Id: <20060517.134042.27108210.davem@davemloft.net> List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: sparclinux@vger.kernel.org From: "H. Peter Anvin" Date: Wed, 17 May 2006 13:37:12 -0700 (PDT) > Is there a way to get that information from userspace, and if not, > should there be a general way to do it or an ad hoc solution? It sort > of looks like arch/sparc64/prom describes a form of filesystem, but I > don't see any obvious userspace interface. There are two ways. First option is to mount the "openpromfs" filesystem under /proc/openprom, the full firmware device tree and properties are available under there as a filesystem. The second option is to load the /dev/openprom driver, which you open, and then access using ioctls() defined in