Scroll to navigation

libnvmf_read_hostid(9) libnvme API manual libnvmf_read_hostid(9)

NAME

libnvmf_read_hostid - Reads the host identifier from the config default location

SYNOPSIS

char * libnvmf_read_hostid (struct libnvme_global_ctx *ctx );

ARGUMENTS

struct libnvme_global_ctx object

DESCRIPTION

Retrieve the host idenditifer from the config file located in $SYSCONFDIR/nvme/. $SYSCONFDIR is usually /etc.

RETURN

The host identifier, or NULL if unsuccessful. If found, the caller is responsible to free the string.

libnvmf_read_hostid July 2026