Is there any way to know the drive number from BDF or slot number of a PCIe or vice versa?
Suppose I have four PCIe drives attached to my system. And I know their BDF's, I want to know each of the drives corresponding drive number in OS.
Example:
/dev/nvme0
forBDF 68:00.0
in Linux, or;/physicalDrive2
forBDF 68:0.0
in Windows.