Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 13 Jan 2014 13:49:06 -0500
From:      John Baldwin <jhb@freebsd.org>
To:        freebsd-drivers@freebsd.org, Nomad Esst <noname.esst@yahoo.com>
Cc:        "freebsd-hackers@freebsd.org" <freebsd-hackers@freebsd.org>
Subject:   Re: Access pci devices' serial numbers programmatically
Message-ID:  <201401131349.06456.jhb@freebsd.org>
In-Reply-To: <1389515545.51283.YahooMailNeo@web162704.mail.bf1.yahoo.com>
References:  <1389515545.51283.YahooMailNeo@web162704.mail.bf1.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sunday, January 12, 2014 3:32:25 am Nomad Esst wrote:
> Hi list
> Any experiences on how to do so? Please tell me if you know how can I do 
that?

There are methods available to query VPD data in dev/pci/pcivar.h if the
serial number is stored in VPD (specifically you can call 
pci_get_vpd_readonly()).

-- 
John Baldwin



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