libnvme_set_test_sysfs_dir-libnvme3(2)

libnvme_set_test_sysfs_dir-libnvme32

Set libnvme's lookup sysfs path for testing

Usage

int libnvme_set_test_sysfs_dir (struct libnvme_global_ctx *ctx , const char *path );

Arguments

ctx

struct libnvme_global_ctx object

path

Directory with sysfs or NULL to restore defaults

Return

0 on success, -EINVAL if ctx is NULL, -ENOMEM on allocation failure.

From nvme-cli 3.2-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.