DOKK / manpages / debian 12 / libnvme-dev / nvme_lookup_ctrl.2.en
nvme_lookup_ctrl(2) libnvme API manual nvme_lookup_ctrl(2)

nvme_lookup_ctrl - Lookup nvme_ctrl_t object

nvme_ctrl_t nvme_lookup_ctrl (nvme_subsystem_t s , const char *transport , const char *traddr , const char *host_traddr , const char *host_iface , const char *trsvcid , nvme_ctrl_t p );

nvme_subsystem_t object
Transport name
Transport address
Host transport address
Host interface name
Transport service identifier
Previous controller instance

Lookup a controller in s based on transport, traddr, host_traddr, host_iface, and trsvcid. transport must be specified, other fields may be required depending on the transport. A new object is created if none is found. If p is specified the lookup will start at p instead of the first controller.

Controller instance

nvme_lookup_ctrl January 2023