From owner-freebsd-hackers@FreeBSD.ORG Fri Nov 29 08:10:57 2013 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 381D4909 for ; Fri, 29 Nov 2013 08:10:57 +0000 (UTC) Received: from nm10-vm1.bullet.mail.bf1.yahoo.com (nm10-vm1.bullet.mail.bf1.yahoo.com [98.139.213.153]) by mx1.freebsd.org (Postfix) with SMTP id C5D4F15A4 for ; Fri, 29 Nov 2013 08:10:56 +0000 (UTC) Received: from [98.139.215.142] by nm10.bullet.mail.bf1.yahoo.com with NNFMP; 29 Nov 2013 08:07:36 -0000 Received: from [98.139.212.211] by tm13.bullet.mail.bf1.yahoo.com with NNFMP; 29 Nov 2013 08:07:35 -0000 Received: from [127.0.0.1] by omp1020.mail.bf1.yahoo.com with NNFMP; 29 Nov 2013 08:07:35 -0000 X-Yahoo-Newman-Property: ymail-5 X-Yahoo-Newman-Id: 820402.27841.bm@omp1020.mail.bf1.yahoo.com Received: (qmail 92087 invoked by uid 60001); 29 Nov 2013 08:07:35 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1385712455; bh=UsTCWP8LdMCXNdbGCz1h7rFjcyRncje1jb60Ikore4c=; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type; b=CwDU4Wk3SnKTO2k+t9fVt2dk0Z5bYnX4tDZslobrVfatS+XgL/wNhKot0V6DGaoewQ1KtPIxR9Go7vOhVTQgCNr8YekGyml2iVa1gzzxYe8AQ2/Z0oXyHY2X0cPkb56Ix8xrlBbESmKB6oL27cT9mZ2Yvhj7iIp+KS/td8PyrDQ= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type; b=gN2wTELxnutjryArlYNtzlgf6T2MlrGgOQ8++54sui/if81AprAGtujMOH/6wtg9mPOUKM8sCs/UsndnQv1FxKNBl7Oxk9UiP8PcNQD2qPGdzF+mbRAjwa4KcwZBY344IgkQs0TKVgUN7zGyMpNJYfi3hOqwjDc1ScUq3AInGhw=; X-YMail-OSG: ItdIDCkVM1mIZgWfWJ_ng4lzM84KeUfssZ3e6Srr72cPn_I OxAiJIlmkQMvejcZkZFnV2JpF0_W3v85YKyXo5ZbCTr5zH_FTyqCzF9o0eT7 nRb9XmcLMlfL9DTsEqqaefAlGMkHEgwJVjkZDlDxMNtSyZhI0A_YQFR9AAAO BG93ntbLRXHU0M95.KrKot48_kuCDE5ZiSFxNKGpGrfbRQw1YhmPEKjgR_.W rn7k5few_vY_2yD4jVDj28VvveCQk0X_HYaLO27pnukjGyAwmjiMiWKMbL1q P7jOvM_b67fTHf61XZlICLy.U63oQxg.RwIPhuyXhDYxiKeRZV2fsg2QW0x_ Xs3.1JuBVjllIf.BDkOpIHoVQON7DQMSHIwaENQXwx7k2ckZnfxl._pG7xJr Xev6clnrQVh65mRO0vWZi0eslLk_q1v1hf9XOIniiw_eEjKLuUzyoXw3ULoj J9LGPw8y7Wib_tbDrMq6aO3Uq2KSgf3Itn9g5iSN7S7Mbh8mZXyX3QSHsC0i LFg7.tBKJCCChDbsNTuiROgxGuzM. Received: from [151.238.159.5] by web162702.mail.bf1.yahoo.com via HTTP; Fri, 29 Nov 2013 00:07:35 PST X-Rocket-MIMEInfo: 002.001, VGhhbmsgeW91IGFsbCBndXlzLiBJIGtub3cgYWxsIHRoZSBzdHVmZiB5b3UgbWVudGlvbmVkLiBUaGUgdGhpbmcgaXMgSSdtIHRyeWluZyB0byBkZXZlbG9wZSBhIHByb2dyYW0gYW5kIEknbSBsb29raW5nIGZvciBzb21lIGxpYnJhcmllcyBvciBmdW5jdGlvbnMgdG8gYWNjZXNzIGhhcmR3YXJlIGluZm9ybWF0aW9ucwoKCgpPbiBUaHVyc2RheSwgTm92ZW1iZXIgMjgsIDIwMTMgOToyMCBQTSwgV29qY2llY2ggUHVjaGFyIDx3b2p0ZWtAd29qdGVrLnRlbnNvci5nZHluaWEucGw.IHdyb3RlOgogCi92YXIvcnUBMAEBAQE- X-Mailer: YahooMailWebService/0.8.167.602 References: <1385636856.33202.YahooMailNeo@web162703.mail.bf1.yahoo.com> Message-ID: <1385712455.73636.YahooMailNeo@web162702.mail.bf1.yahoo.com> Date: Fri, 29 Nov 2013 00:07:35 -0800 (PST) From: Nomad Esst Subject: Re: Access to hardware informations from an user-space program To: Wojciech Puchar In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Content-Filtered-By: Mailman/MimeDel 2.1.16 Cc: "freebsd-hackers@freebsd.org" X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.16 Precedence: list Reply-To: Nomad Esst List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 Nov 2013 08:10:57 -0000 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 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: 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 ; 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 ; 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?= User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:24.0) Gecko/20100101 Thunderbird/24.1.0 MIME-Version: 1.0 To: Nomad Esst Subject: Re: Access to hardware informations from an user-space program References: <1385636856.33202.YahooMailNeo@web162703.mail.bf1.yahoo.com> <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" 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: 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