From: =?ISO-8859-1?Q?Jean-S=E9bastien_P=E9dron?= Subject: Get PCI vendor/device ID from userland Date: Thu, 25 Jul 2013 23:10:22 +0200 Message-ID: <51F1943E.7000609@dumbbell.fr> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1"; Format="flowed" Content-Transfer-Encoding: quoted-printable Return-path: Received: from mail.made4.biz (ns25270.ovh.net [91.121.29.24]) by gabe.freedesktop.org (Postfix) with ESMTP id 3939BE7171 for ; Thu, 25 Jul 2013 14:10:23 -0700 (PDT) Received: from 141.7.19.93.rev.sfr.net ([93.19.7.141] helo=[192.168.1.176]) by mail.made4.biz with esmtpsa (TLSv1:DHE-RSA-CAMELLIA256-SHA:256) (Exim 4.80.1 (FreeBSD)) (envelope-from ) id 1V2Snl-00024w-Es for dri-devel@lists.freedesktop.org; Thu, 25 Jul 2013 23:10:21 +0200 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org Errors-To: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org To: dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org Hello, While looking at pipe_loader_drm.c in Mesa, I see that udev is used on = Linux to get the PCI ID of the device. I understand that getting this = information is a general need in libdrm, Mesa, and so on. Is there a portable way to obtain this? If not, what do you think about adding an ioctl in drm to get the PCI ID = of an opened device? -- = Jean-S=E9bastien P=E9dron