From owner-freebsd-hackers@FreeBSD.ORG Wed Jan 15 06:06:07 2014 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 7216E449 for ; Wed, 15 Jan 2014 06:06:07 +0000 (UTC) Received: from nm30-vm0.bullet.mail.bf1.yahoo.com (nm30-vm0.bullet.mail.bf1.yahoo.com [98.139.213.126]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 1F69B1B36 for ; Wed, 15 Jan 2014 06:06:06 +0000 (UTC) Received: from [98.139.215.140] by nm30.bullet.mail.bf1.yahoo.com with NNFMP; 15 Jan 2014 06:06:00 -0000 Received: from [98.139.212.204] by tm11.bullet.mail.bf1.yahoo.com with NNFMP; 15 Jan 2014 06:06:00 -0000 Received: from [127.0.0.1] by omp1013.mail.bf1.yahoo.com with NNFMP; 15 Jan 2014 06:06:00 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 188097.76465.bm@omp1013.mail.bf1.yahoo.com Received: (qmail 4316 invoked by uid 60001); 15 Jan 2014 06:06:00 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1389765960; bh=H/JnV+87n2/4JLgOpiiqV+G//Ni7h1SnwlvQNeJkNHs=; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=hC9vti3EiH61Xh9c00svrV1mfS5WU7MxDkgbaGhBh3nXWe1iI3q7K8ZnPxjhmI5BWQ88nTiUd3X6nKM57li5BETtCS5IHPIQ9bLAC9TXAp7/jd1XBLs/9cw+jnzEJNsGXwj1+P6szNoiDwSSOgu3VzvxV5hheTMm0kq5qIlnipE= 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:In-Reply-To:MIME-Version:Content-Type; b=BPV/yMtoIkrLH1Sl0+fQFmr8aSFeY48FaRP2woRXBMQjc5Kkmh3LqvLEQfnL+2skGrerhvmGlB0ORiwrc3l/ycXi1d3D4FeN5yJ43vwAyT4ABts3ZhiBdE0q91a9NFc8nsTPLrrikXI9Ldsesmmw+JcHQNm+wHHm3J10gSQbZWw=; X-YMail-OSG: 7KqDTnUVM1nnNnJiWuUoFjK6.SE9vQVxwaIeo0v9kqpvvQF dRzj6U.H9P2PRox8DmkqAkH_lq_KzwpLOHmB61aTV7BBhc6yjLFPZuSb_IsS c5BTBY0eKD1H5vHr8Bs52zo0RzAdT2FTZ0crX2k45IpeJlYDJ8L6z.5K06iO TcbZuxekaLA1kFvU6uPoIFEOvPBHQBuRavOnLWHrcSOzBI9yVhm7SegatypO 5ZqMJNDL_BINqf7Twq51ccTwrHXC5Q9Zi20xbd5MpTIUxE7VEBCTDZTQsI6v OoGpA5sIg.6X5XzcRV.lkhuC3EVvlEqkZpgCgnpCBkn1Dv4yhRdJo70lochI Kc8IZ4zj9Kp9Yk0XkHLvGqRR4s6W23zJOMcK_1LMHl_kvrAAmC4xdcRkWl6d jkFu03gQXXYm.j.laCBgKN1z.PsvdaNzLDGkEtrxPYxc5r6IZCNqRCXEmWFK BsMFBm4ljwckK3HPsJ4jM_VIBy6_f7G1hNnbtpgjVKCGQk5LWavh_kvvsX2l iYGLKoQdahy3Ul99X3w83 Received: from [89.165.120.140] by web162702.mail.bf1.yahoo.com via HTTP; Tue, 14 Jan 2014 22:05:59 PST X-Rocket-MIMEInfo: 002.001, WWVzIEknbSB0cnlpbmcgdG8gZ2V0IHRoZXNlIGluZm9ybWF0aW9uIGZyb20gdXNlci1sYW5kLiBBbnkgaWRlYXMgbm93PwoKCgpPbiBUdWVzZGF5LCBKYW51YXJ5IDE0LCAyMDE0IDQ6NTQgUE0sIEpvaG4gQmFsZHdpbiA8amhiQGZyZWVic2Qub3JnPiB3cm90ZToKIApPbiBUdWVzZGF5LCBKYW51YXJ5IDE0LCAyMDE0IDE6MDg6NTUgYW0gTm9tYWQgRXNzdCB3cm90ZToKPj4gVGhhbmsgeW91LiBUaGUgdGhpbmcgaXMgb25lIG9mIHRoZSBpbnB1dCBhcmd1bWVudHMgb2YgdGhpcyBmdW5jdGlvbiBpcyAKPmRldmkBMAEBAQE- X-Mailer: YahooMailWebService/0.8.172.614 References: <1389515545.51283.YahooMailNeo@web162704.mail.bf1.yahoo.com> <1389678825.62302.YahooMailNeo@web162702.mail.bf1.yahoo.com> <1389679735.19797.YahooMailNeo@web162702.mail.bf1.yahoo.com> <201401140824.03549.jhb@freebsd.org> Message-ID: <1389765959.45668.YahooMailNeo@web162702.mail.bf1.yahoo.com> Date: Tue, 14 Jan 2014 22:05:59 -0800 (PST) From: Nomad Esst Subject: Re: Access pci devices' serial numbers programmatically To: John Baldwin , "freebsd-hackers@freebsd.org" In-Reply-To: <201401140824.03549.jhb@freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.17 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.17 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: Wed, 15 Jan 2014 06:06:07 -0000 Yes I'm trying to get these information from user-land. Any ideas now?=0A= =0A=0A=0AOn Tuesday, January 14, 2014 4:54 PM, John Baldwin wrote:=0A =0AOn Tuesday, January 14, 2014 1:08:55 am Nomad Esst wrote:= =0A>> Thank you. The thing is one of the input arguments of this function i= s =0A>device_t. How can I get this struct by device name so I can pass it t= o =0A>pci_get_vpd_readonly function?=0A>=0A>If you are in a device driver m= ethod such as probe or attach, you should=0A>already have the device_t avai= lable.=A0 Are you trying to query this from=0A>userland?=0A>=0A>=0A>-- =0A>= John Baldwin=0A>=0A>=0A> From owner-freebsd-hackers@FreeBSD.ORG Thu Jan 16 12:38:33 2014 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 DCD309C8 for ; Thu, 16 Jan 2014 12:38:33 +0000 (UTC) Received: from mta05.bitpro.no (mta05.bitpro.no [92.42.64.202]) by mx1.freebsd.org (Postfix) with ESMTP id 979D2140F for ; Thu, 16 Jan 2014 12:38:33 +0000 (UTC) Received: from mail.lockless.no (mail.lockless.no [46.29.221.38]) by mta05.bitpro.no (Postfix) with ESMTPS id 584A517FCA1 for ; Thu, 16 Jan 2014 13:38:25 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by mail.lockless.no (Postfix) with ESMTP id E04688EEB8D for ; Thu, 16 Jan 2014 13:39:13 +0100 (CET) X-Virus-Scanned: by amavisd-new-2.6.4 (20090625) (Debian) at lockless.no Received: from mail.lockless.no ([127.0.0.1]) by localhost (mail.lockless.no [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id iKBA7h0sLGuS for ; Thu, 16 Jan 2014 13:39:13 +0100 (CET) Received: from laptop015.home.selasky.org (cm-176.74.213.204.customer.telag.net [176.74.213.204]) by mail.lockless.no (Postfix) with ESMTPSA id 4DDB48EE2AF for ; Thu, 16 Jan 2014 13:39:13 +0100 (CET) Message-ID: <52D7D302.3090403@bitfrost.no> Date: Thu, 16 Jan 2014 13:39:30 +0100 From: Hans Petter Selasky Organization: Bitfrost A/S User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:24.0) Gecko/20100101 Thunderbird/24.1.0 MIME-Version: 1.0 To: "freebsd-hackers@freebsd.org" Subject: Make "sys/queue.h" usable with C++ Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Jan 2014 12:38:33 -0000 Hi, I'm using "sys/queue.h" with some C++ programs. The only problem is that you cannot make an ENTRY() using classes without getting some compiler warnings, because all macros in "sys/queue.h" assume "struct". My simple patch is to add something like: #ifdef "C++" #define QUEUE_STRUCT #else #define QUEUE_STRUCT struct #endif And use QUEUE_STRUCT instead of "struct" everywhere inside "sys/queue.h". Any opinions about this? --HPS