scan.h

int libnvme_scan_subsystems(struct libnvme_global_ctx *ctx, struct dirent ***subsys)

Scan for subsystems

Parameters

struct libnvme_global_ctx *ctx

struct libnvme_global_ctx object

struct dirent ***subsys

Pointer to array of dirents

Return

number of entries in subsys or a negative error code

int libnvme_scan_subsystem_namespaces(libnvme_subsystem_t s, struct dirent ***ns)

Scan for namespaces in a subsystem

Parameters

libnvme_subsystem_t s

Subsystem to scan

struct dirent ***ns

Pointer to array of dirents

Return

number of entries in ns or a negative error code

int libnvme_scan_ctrls(struct libnvme_global_ctx *ctx, struct dirent ***ctrls)

Scan for controllers

Parameters

struct libnvme_global_ctx *ctx

struct libnvme_global_ctx object

struct dirent ***ctrls

Pointer to array of dirents

Return

number of entries in ctrls or a negative error code

int libnvme_scan_ctrl_namespace_paths(libnvme_ctrl_t c, struct dirent ***paths)

Scan for namespace paths in a controller

Parameters

libnvme_ctrl_t c

Controller to scan

struct dirent ***paths

Pointer to array of dirents

Return

number of entries in paths or a negative error code

int libnvme_scan_ctrl_namespaces(libnvme_ctrl_t c, struct dirent ***ns)

Scan for namespaces in a controller

Parameters

libnvme_ctrl_t c

Controller to scan

struct dirent ***ns

Pointer to array of dirents

Return

number of entries in ns or a negative error code

int libnvme_scan_ns_head_paths(libnvme_ns_head_t head, struct dirent ***paths)

Scan for namespace paths

Parameters

libnvme_ns_head_t head

Namespace head node to scan

struct dirent ***paths

Pointer to array of dirents

Return

number of entries in ents or a negative error code