From owner-freebsd-hackers@FreeBSD.ORG Thu Nov 28 11:07:43 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 7673C560 for ; Thu, 28 Nov 2013 11:07:43 +0000 (UTC) Received: from nm5-vm0.bullet.mail.bf1.yahoo.com (nm5-vm0.bullet.mail.bf1.yahoo.com [98.139.213.150]) by mx1.freebsd.org (Postfix) with SMTP id D60BC16B4 for ; Thu, 28 Nov 2013 11:07:42 +0000 (UTC) Received: from [98.139.215.142] by nm5.bullet.mail.bf1.yahoo.com with NNFMP; 28 Nov 2013 11:07:36 -0000 Received: from [98.139.212.209] by tm13.bullet.mail.bf1.yahoo.com with NNFMP; 28 Nov 2013 11:07:36 -0000 Received: from [127.0.0.1] by omp1018.mail.bf1.yahoo.com with NNFMP; 28 Nov 2013 11:07:36 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 295125.40968.bm@omp1018.mail.bf1.yahoo.com Received: (qmail 44616 invoked by uid 60001); 28 Nov 2013 11:07:36 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1385636856; bh=Fj/I/xKPbyx/lznOwXasQt6wvVZb2MjDVt9yomssn6I=; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:Message-ID:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type; b=dEwDG52G0z9S9X7tfExWGDp9Fv8uXwnONKCEMK1UPaydmNGM6+0Lg7Vkuqp+AtITSNcdwrL7ovT0wyai+ieG2mhVXJT/WE4woOUD3duwFiZIYifQrv0f2eK/gXboiOsBPW++5CZJOTM0wMyIZtM2Vshhu4UA3xfGC22UOKUdbus= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:Message-ID:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type; b=AlTrzBpyxJBkltYUdjbXwffKbQ2jtIUVXgLEcHBHf1fAWIS1OFtjPGBVOvgEi3zvabSWA2F9y7Blo5I3gZ3iDcGIDsGmGUQWxWEcKhpi775w8hKFQ3fidBHfviMzdrQAmHnZ7ZkeIGj9r2JOO2b6JlOTEIEEy5h4V9RsOfcMjtc=; X-YMail-OSG: Rgm9Z90VM1ntnC_S6YUUuykC3iVR.PqKYRxORyPGoN8qhtd nhApiDV2guNbUHZR.Hq7.mdv5fzE4dVAb9KXw8KOwyJTAD7.pjYwuh9tg9X3 PL.NApgcXtwrMgZgYCY_tpuDQX9vixo98fWpdM3Xedr2soZQCwWWssEHjZ9V 5D96AUoqz4LzXF6MWdP5RIrAQuLS3_eFSfOLFrOfnXMQRUp1PMIsSCGG1PNL 1rtFqBMWMaBgOpgC5f9EubHi2oNI8_QMR4QAww28Q_Qi2ozzit3CuCT2Q4Os Hfyztl4MWwtSNmrf6zVyRuSYTzUUBhdRYS8zqNpOThP6ik4gFg70klYBd.vo iO0rtZ3KnGV43iXWjG.tSDNrfIPQCJgRCrXq67K2bgJUI8OpP7g7gt7igP6M u31b0_OiHbJ2n9mr_JdFZyY157HWQm.7GmXuQLIecnT6ld3f4ngq6.Y7EGXM cNop8LHdPIBcG9vl18KlMmJ.Vek9HvJI.GObES0LPhvCNS.7VB.ygh.PMSy3 G4RV4ZWx_gBlwEOZplTs- Received: from [89.165.120.140] by web162703.mail.bf1.yahoo.com via HTTP; Thu, 28 Nov 2013 03:07:36 PST X-Rocket-MIMEInfo: 002.001, SGkgbGlzdApJIGhhdmUgYXNrZWQgdGhpcyBxdWVzdGlvbiBpbiBhbm90aGVyIG1haWxpbmcgbGlzdCBhbiBJJ20gd2FpdGluZyBvciB0aGVpciByZXNwb25zZS4gSSBqdXN0IHRob3VnaHQgdGhhdCBpdCB3b3VsZCBiZSBiZXR0ZXIgdG8gYXNrIHRoaXMgcXVlc3Rpb24gaGVyZSB0b28uCkhvdyBjYW4gSSBkbyBzbz8gQnkgaGFyZHdhcmUgaW5mb3JtYXRpb25zIEkgbWVhbiB3aGljaCBjYXJkIGlzIGxvY2F0ZWQgb24gd2hpY2ggc2xvdCwgY2FyZCBzZXJpYWwgbnVtYmVyLCBtYW51ZmFjdHVyZXIgYW5kIC4uLiABMAEBAQE- X-Mailer: YahooMailWebService/0.8.167.602 Message-ID: <1385636856.33202.YahooMailNeo@web162703.mail.bf1.yahoo.com> Date: Thu, 28 Nov 2013 03:07:36 -0800 (PST) From: Nomad Esst Subject: Access to hardware informations from an user-space program To: "freebsd-hackers@freebsd.org" MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Content-Filtered-By: Mailman/MimeDel 2.1.16 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: Thu, 28 Nov 2013 11:07:43 -0000 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.