Access pci devices' serial numbers programmatically
John Baldwin
jhb at freebsd.org
Tue Jan 14 20:15:54 UTC 2014
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
More information about the freebsd-hackers
mailing list