numam-spdk/scripts/rpc/subsystem.py
Konrad Sztyber 9647fd4e8d rpc: add method for listing PCI devices
This RPC lists all PCI devices attached to an SPDK application.  Each
device is identified by a BDF and contains a buffer with a copy of its
config space.

Signed-off-by: Konrad Sztyber <konrad.sztyber@intel.com>
Change-Id: I852f421fde105d975458f8e63b8da4f92ed2c69b
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/10652
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Aleksey Marchuk <alexeymar@mellanox.com>
Community-CI: Mellanox Build Bot
2021-12-14 09:08:59 +00:00

17 lines
425 B
Python

from .helpers import deprecated_alias
@deprecated_alias('get_subsystems')
def framework_get_subsystems(client):
return client.call('framework_get_subsystems')
@deprecated_alias('get_subsystem_config')
def framework_get_config(client, name):
params = {'name': name}
return client.call('framework_get_config', params)
def framework_get_pci_devices(client):
return client.call('framework_get_pci_devices')