libxnvme_scan.h#

Functions#

xnvme_scan#

int xnvme_scan(const char *sys_uri, struct xnvme_opts *opts, xnvme_scan_cb cb_func, void *cb_args)#

Scan for devices without opening them.

Parameters:
  • sys_uri – URI of the system to scan, when NULL, localhost/PCIe

  • opts – Options for instrumenting the runtime during scan

  • cb_func – Callback function to invoke for each yielded device identity

  • cb_args – Arguments passed to the callback function

Returns:

On success, 0 is returned. On error, negative errno is returned.