Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 14 Jan 2014 08:24:03 -0500
From:      John Baldwin <jhb@freebsd.org>
To:        freebsd-hackers@freebsd.org, Nomad Esst <noname.esst@yahoo.com>
Subject:   Re: Access pci devices' serial numbers programmatically
Message-ID:  <201401140824.03549.jhb@freebsd.org>
In-Reply-To: <1389679735.19797.YahooMailNeo@web162702.mail.bf1.yahoo.com>
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>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tuesday, January 14, 2014 1:08:55 am Nomad Esst wrote:
> Thank you. The thing is one of the input arguments of this function is 
device_t. How can I get this struct by device name so I can pass it to 
pci_get_vpd_readonly function?

If you are in a device driver method such as probe or attach, you should
already have the device_t available.  Are you trying to query this from
userland?

-- 
John Baldwin



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