From owner-freebsd-hackers@FreeBSD.ORG Thu Nov 28 17:50:41 2013 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id B3ABD2BE for ; Thu, 28 Nov 2013 17:50:41 +0000 (UTC) Received: from wojtek.tensor.gdynia.pl (wojtek.tensor.gdynia.pl [188.252.31.196]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 32C621B7D for ; Thu, 28 Nov 2013 17:50:40 +0000 (UTC) Received: from wojtek.tensor.gdynia.pl (localhost [127.0.0.1]) by wojtek.tensor.gdynia.pl (8.14.6/8.14.7) with ESMTP id rASHoNZo002439; Thu, 28 Nov 2013 18:50:23 +0100 (CET) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from localhost (wojtek@localhost) by wojtek.tensor.gdynia.pl (8.14.6/8.14.7/Submit) with ESMTP id rASHoMX8002436; Thu, 28 Nov 2013 18:50:22 +0100 (CET) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Date: Thu, 28 Nov 2013 18:50:22 +0100 (CET) From: Wojciech Puchar To: Nomad Esst Subject: Re: Access to hardware informations from an user-space program In-Reply-To: <1385636856.33202.YahooMailNeo@web162703.mail.bf1.yahoo.com> Message-ID: References: <1385636856.33202.YahooMailNeo@web162703.mail.bf1.yahoo.com> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.4.3 (wojtek.tensor.gdynia.pl [127.0.0.1]); Thu, 28 Nov 2013 18:50:23 +0100 (CET) Cc: "freebsd-hackers@freebsd.org" X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Nov 2013 17:50:41 -0000 /var/run/dmesg.boot is world readable. On Thu, 28 Nov 2013, Nomad Esst wrote: > Hi list > I have asked this question in another mailing list an I'm waiting or their response. I just thought that it would be better to ask this question here too. > How can I do so? By hardware informations I mean which card is located on which slot, card serial number, manufacturer and ... . I know some utils do this e.g. dmesg, pciconf but I want to write something on my own. > Any suggestion is appreciated. > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" > >