libnvme_scan_ctrl(9) libnvme API manual libnvme_scan_ctrl(9)

libnvme_scan_ctrl - Scan on a controller

int libnvme_scan_ctrl (struct libnvme_global_ctx *ctx , const char *name , struct libnvme_ctrl **c );

struct libnvme_global_ctx object
Name of the controller
struct libnvme_ctrl object to return

Scans a controller with sysfs name name and add it to r.

0 on success, negative error code otherwise.

libnvme_scan_ctrl September 2026