Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 29 Nov 2013 00:07:35 -0800 (PST)
From:      Nomad Esst <noname.esst@yahoo.com>
To:        Wojciech Puchar <wojtek@wojtek.tensor.gdynia.pl>
Cc:        "freebsd-hackers@freebsd.org" <freebsd-hackers@freebsd.org>
Subject:   Re: Access to hardware informations from an user-space program
Message-ID:  <1385712455.73636.YahooMailNeo@web162702.mail.bf1.yahoo.com>
In-Reply-To: <alpine.BSF.2.00.1311281850090.2406@wojtek.tensor.gdynia.pl>
References:  <1385636856.33202.YahooMailNeo@web162703.mail.bf1.yahoo.com> <alpine.BSF.2.00.1311281850090.2406@wojtek.tensor.gdynia.pl>

next in thread | previous in thread | raw e-mail | index | archive | help
Thank you all guys. I know all the stuff you mentioned. The thing is I'm trying to develope a program and I'm looking for some libraries or functions to access hardware informations



On Thursday, November 28, 2013 9:20 PM, Wojciech Puchar <wojtek@wojtek.tensor.gdynia.pl> wrote:
 
/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"
>>
>>
>_______________________________________________
>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
>"
>
>
>
From owner-freebsd-hackers@FreeBSD.ORG  Fri Nov 29 09:45:50 2013
Return-Path: <owner-freebsd-hackers@FreeBSD.ORG>
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 30143E0E
 for <freebsd-hackers@freebsd.org>; Fri, 29 Nov 2013 09:45:50 +0000 (UTC)
Received: from sender1.zohomail.com (sender1.zohomail.com [72.5.230.95])
 by mx1.freebsd.org (Postfix) with ESMTP id 14FE31A64
 for <freebsd-hackers@freebsd.org>; Fri, 29 Nov 2013 09:45:49 +0000 (UTC)
DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=zapps768; d=zoho.com; 
 h=message-id:date:from:user-agent:mime-version:to:cc:subject:references:in-reply-to:content-type;
 b=ZY6WP2Db4V3BfO50hi0mQHN9vxMoTqpnizgOM91FCOfvIeNABO244jFKi1KujMtViT03rIlT41FW
 5Qd26fmZxCvKLzEyoS8xDC3aRqLAtOQ033uiNx1LCDDwLUEe4dyC  
Received: from [192.168.2.5] (224-8-237-24.gci.net [24.237.8.224]) by
 mx.zohomail.com with SMTPS id 1385718344571419.61539046247333;
 Fri, 29 Nov 2013 01:45:44 -0800 (PST)
Message-ID: <52986247.7040503@zoho.com>
Date: Fri, 29 Nov 2013 00:45:43 -0900
From: =?UTF-8?B?xYF1a2FzeiBXw7NqY2lr?= <lukasz.wojcik@zoho.com>
User-Agent: Mozilla/5.0 (X11; FreeBSD amd64;
 rv:24.0) Gecko/20100101 Thunderbird/24.1.0
MIME-Version: 1.0
To: Nomad Esst <noname.esst@yahoo.com>
Subject: Re: Access to hardware informations from an user-space program
References: <1385636856.33202.YahooMailNeo@web162703.mail.bf1.yahoo.com>
 <alpine.BSF.2.00.1311281850090.2406@wojtek.tensor.gdynia.pl>
 <1385712455.73636.YahooMailNeo@web162702.mail.bf1.yahoo.com>
In-Reply-To: <1385712455.73636.YahooMailNeo@web162702.mail.bf1.yahoo.com>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-ZohoMailClient: External
X-Zoho-Virus-Status: 2
Cc: "freebsd-hackers@freebsd.org" <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
 <freebsd-hackers.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/options/freebsd-hackers>, 
 <mailto:freebsd-hackers-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-hackers/>;
List-Post: <mailto:freebsd-hackers@freebsd.org>
List-Help: <mailto:freebsd-hackers-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-hackers>,
 <mailto:freebsd-hackers-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Fri, 29 Nov 2013 09:45:50 -0000

On 11/28/2013 23:07, Nomad Esst wrote:
> Thank you all guys. I know all the stuff you mentioned. The thing is I'm trying to develope a program and I'm looking for some libraries or functions to access hardware informations
>
>

Best advice you can get is: take a look at the source code of mentioned 
tools. They're pretty easy to comprehend. That's really the best way you 
can learn how to access hw information, especially if you want to write 
your own tool.

-LW







Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1385712455.73636.YahooMailNeo>