-
void libnvme_path_set_name(struct libnvme_path *p, const char *name)¶
Set name.
Parameters
struct libnvme_path *pThe
struct libnvme_pathinstance to update.const char *nameNew string; a copy is stored. Pass NULL to clear.
-
const char *libnvme_path_get_name(const struct libnvme_path *p)¶
Get name.
Parameters
const struct libnvme_path *pThe
struct libnvme_pathinstance to query.
Return
The value of the name field, or NULL if not set.
-
void libnvme_path_set_sysfs_dir(struct libnvme_path *p, const char *sysfs_dir)¶
Set sysfs_dir.
Parameters
struct libnvme_path *pThe
struct libnvme_pathinstance to update.const char *sysfs_dirNew string; a copy is stored. Pass NULL to clear.
-
const char *libnvme_path_get_sysfs_dir(const struct libnvme_path *p)¶
Get sysfs_dir.
Parameters
const struct libnvme_path *pThe
struct libnvme_pathinstance to query.
Return
The value of the sysfs_dir field, or NULL if not set.
-
void libnvme_path_set_grpid(struct libnvme_path *p, int grpid)¶
Set grpid.
Parameters
struct libnvme_path *pThe
struct libnvme_pathinstance to update.int grpidValue to assign to the grpid field.
-
int libnvme_path_get_grpid(const struct libnvme_path *p)¶
Get grpid.
Parameters
const struct libnvme_path *pThe
struct libnvme_pathinstance to query.
Return
The value of the grpid field.
-
void libnvme_ns_set_nsid(struct libnvme_ns *p, __u32 nsid)¶
Set nsid.
Parameters
struct libnvme_ns *pThe
struct libnvme_nsinstance to update.__u32 nsidValue to assign to the nsid field.
-
__u32 libnvme_ns_get_nsid(const struct libnvme_ns *p)¶
Get nsid.
Parameters
const struct libnvme_ns *pThe
struct libnvme_nsinstance to query.
Return
The value of the nsid field.
-
const char *libnvme_ns_get_name(const struct libnvme_ns *p)¶
Get name.
Parameters
const struct libnvme_ns *pThe
struct libnvme_nsinstance to query.
Return
The value of the name field, or NULL if not set.
-
const char *libnvme_ns_get_generic_name(const struct libnvme_ns *p)¶
Get generic_name.
Parameters
const struct libnvme_ns *pThe
struct libnvme_nsinstance to query.
Return
The value of the generic_name field, or NULL if not set.
-
void libnvme_ns_set_sysfs_dir(struct libnvme_ns *p, const char *sysfs_dir)¶
Set sysfs_dir.
Parameters
struct libnvme_ns *pThe
struct libnvme_nsinstance to update.const char *sysfs_dirNew string; a copy is stored. Pass NULL to clear.
-
const char *libnvme_ns_get_sysfs_dir(const struct libnvme_ns *p)¶
Get sysfs_dir.
Parameters
const struct libnvme_ns *pThe
struct libnvme_nsinstance to query.
Return
The value of the sysfs_dir field, or NULL if not set.
-
void libnvme_ns_set_lba_shift(struct libnvme_ns *p, int lba_shift)¶
Set lba_shift.
Parameters
struct libnvme_ns *pThe
struct libnvme_nsinstance to update.int lba_shiftValue to assign to the lba_shift field.
-
int libnvme_ns_get_lba_shift(const struct libnvme_ns *p)¶
Get lba_shift.
Parameters
const struct libnvme_ns *pThe
struct libnvme_nsinstance to query.
Return
The value of the lba_shift field.
-
void libnvme_ns_set_lba_size(struct libnvme_ns *p, int lba_size)¶
Set lba_size.
Parameters
struct libnvme_ns *pThe
struct libnvme_nsinstance to update.int lba_sizeValue to assign to the lba_size field.
-
int libnvme_ns_get_lba_size(const struct libnvme_ns *p)¶
Get lba_size.
Parameters
const struct libnvme_ns *pThe
struct libnvme_nsinstance to query.
Return
The value of the lba_size field.
-
void libnvme_ns_set_meta_size(struct libnvme_ns *p, int meta_size)¶
Set meta_size.
Parameters
struct libnvme_ns *pThe
struct libnvme_nsinstance to update.int meta_sizeValue to assign to the meta_size field.
-
int libnvme_ns_get_meta_size(const struct libnvme_ns *p)¶
Get meta_size.
Parameters
const struct libnvme_ns *pThe
struct libnvme_nsinstance to query.
Return
The value of the meta_size field.
-
void libnvme_ns_set_lba_count(struct libnvme_ns *p, uint64_t lba_count)¶
Set lba_count.
Parameters
struct libnvme_ns *pThe
struct libnvme_nsinstance to update.uint64_t lba_countValue to assign to the lba_count field.
-
uint64_t libnvme_ns_get_lba_count(const struct libnvme_ns *p)¶
Get lba_count.
Parameters
const struct libnvme_ns *pThe
struct libnvme_nsinstance to query.
Return
The value of the lba_count field.
-
void libnvme_ns_set_lba_util(struct libnvme_ns *p, uint64_t lba_util)¶
Set lba_util.
Parameters
struct libnvme_ns *pThe
struct libnvme_nsinstance to update.uint64_t lba_utilValue to assign to the lba_util field.
-
uint64_t libnvme_ns_get_lba_util(const struct libnvme_ns *p)¶
Get lba_util.
Parameters
const struct libnvme_ns *pThe
struct libnvme_nsinstance to query.
Return
The value of the lba_util field.
-
const uint8_t *libnvme_ns_get_eui64(const struct libnvme_ns *p)¶
Get eui64.
Parameters
const struct libnvme_ns *pThe
struct libnvme_nsinstance to query.
Return
Pointer to the eui64 array of 8 uint8_t elements.
-
const uint8_t *libnvme_ns_get_nguid(const struct libnvme_ns *p)¶
Get nguid.
Parameters
const struct libnvme_ns *pThe
struct libnvme_nsinstance to query.
Return
Pointer to the nguid array of 16 uint8_t elements.
-
enum nvme_csi libnvme_ns_get_csi(const struct libnvme_ns *p)¶
Get csi.
Parameters
const struct libnvme_ns *pThe
struct libnvme_nsinstance to query.
Return
The value of the csi field.
-
const char *libnvme_ctrl_get_name(const struct libnvme_ctrl *p)¶
Get name.
Parameters
const struct libnvme_ctrl *pThe
struct libnvme_ctrlinstance to query.
Return
The value of the name field, or NULL if not set.
-
const char *libnvme_ctrl_get_sysfs_dir(const struct libnvme_ctrl *p)¶
Get sysfs_dir.
Parameters
const struct libnvme_ctrl *pThe
struct libnvme_ctrlinstance to query.
Return
The value of the sysfs_dir field, or NULL if not set.
-
const char *libnvme_ctrl_get_address(const struct libnvme_ctrl *p)¶
Get address.
Parameters
const struct libnvme_ctrl *pThe
struct libnvme_ctrlinstance to query.
Return
The value of the address field, or NULL if not set.
-
const char *libnvme_ctrl_get_firmware(const struct libnvme_ctrl *p)¶
Get firmware.
Parameters
const struct libnvme_ctrl *pThe
struct libnvme_ctrlinstance to query.
Return
The value of the firmware field, or NULL if not set.
-
const char *libnvme_ctrl_get_model(const struct libnvme_ctrl *p)¶
Get model.
Parameters
const struct libnvme_ctrl *pThe
struct libnvme_ctrlinstance to query.
Return
The value of the model field, or NULL if not set.
-
const char *libnvme_ctrl_get_numa_node(const struct libnvme_ctrl *p)¶
Get numa_node.
Parameters
const struct libnvme_ctrl *pThe
struct libnvme_ctrlinstance to query.
Return
The value of the numa_node field, or NULL if not set.
-
const char *libnvme_ctrl_get_queue_count(const struct libnvme_ctrl *p)¶
Get queue_count.
Parameters
const struct libnvme_ctrl *pThe
struct libnvme_ctrlinstance to query.
Return
The value of the queue_count field, or NULL if not set.
-
const char *libnvme_ctrl_get_serial(const struct libnvme_ctrl *p)¶
Get serial.
Parameters
const struct libnvme_ctrl *pThe
struct libnvme_ctrlinstance to query.
Return
The value of the serial field, or NULL if not set.
-
const char *libnvme_ctrl_get_sqsize(const struct libnvme_ctrl *p)¶
Get sqsize.
Parameters
const struct libnvme_ctrl *pThe
struct libnvme_ctrlinstance to query.
Return
The value of the sqsize field, or NULL if not set.
-
const char *libnvme_ctrl_get_transport(const struct libnvme_ctrl *p)¶
Get transport.
Parameters
const struct libnvme_ctrl *pThe
struct libnvme_ctrlinstance to query.
Return
The value of the transport field, or NULL if not set.
-
const char *libnvme_ctrl_get_subsysnqn(const struct libnvme_ctrl *p)¶
Get subsysnqn.
Parameters
const struct libnvme_ctrl *pThe
struct libnvme_ctrlinstance to query.
Return
The value of the subsysnqn field, or NULL if not set.
-
const char *libnvme_ctrl_get_traddr(const struct libnvme_ctrl *p)¶
Get traddr.
Parameters
const struct libnvme_ctrl *pThe
struct libnvme_ctrlinstance to query.
Return
The value of the traddr field, or NULL if not set.
-
const char *libnvme_ctrl_get_trsvcid(const struct libnvme_ctrl *p)¶
Get trsvcid.
Parameters
const struct libnvme_ctrl *pThe
struct libnvme_ctrlinstance to query.
Return
The value of the trsvcid field, or NULL if not set.
-
void libnvme_ctrl_set_dhchap_host_key(struct libnvme_ctrl *p, const char *dhchap_host_key)¶
Set dhchap_host_key.
Parameters
struct libnvme_ctrl *pThe
struct libnvme_ctrlinstance to update.const char *dhchap_host_keyNew string; a copy is stored. Pass NULL to clear.
-
const char *libnvme_ctrl_get_dhchap_host_key(const struct libnvme_ctrl *p)¶
Get dhchap_host_key.
Parameters
const struct libnvme_ctrl *pThe
struct libnvme_ctrlinstance to query.
Return
The value of the dhchap_host_key field, or NULL if not set.
-
void libnvme_ctrl_set_dhchap_ctrl_key(struct libnvme_ctrl *p, const char *dhchap_ctrl_key)¶
Set dhchap_ctrl_key.
Parameters
struct libnvme_ctrl *pThe
struct libnvme_ctrlinstance to update.const char *dhchap_ctrl_keyNew string; a copy is stored. Pass NULL to clear.
-
const char *libnvme_ctrl_get_dhchap_ctrl_key(const struct libnvme_ctrl *p)¶
Get dhchap_ctrl_key.
Parameters
const struct libnvme_ctrl *pThe
struct libnvme_ctrlinstance to query.
Return
The value of the dhchap_ctrl_key field, or NULL if not set.
-
void libnvme_ctrl_set_keyring(struct libnvme_ctrl *p, const char *keyring)¶
Set keyring.
Parameters
struct libnvme_ctrl *pThe
struct libnvme_ctrlinstance to update.const char *keyringNew string; a copy is stored. Pass NULL to clear.
-
const char *libnvme_ctrl_get_keyring(const struct libnvme_ctrl *p)¶
Get keyring.
Parameters
const struct libnvme_ctrl *pThe
struct libnvme_ctrlinstance to query.
Return
The value of the keyring field, or NULL if not set.
-
void libnvme_ctrl_set_tls_key_identity(struct libnvme_ctrl *p, const char *tls_key_identity)¶
Set tls_key_identity.
Parameters
struct libnvme_ctrl *pThe
struct libnvme_ctrlinstance to update.const char *tls_key_identityNew string; a copy is stored. Pass NULL to clear.
-
const char *libnvme_ctrl_get_tls_key_identity(const struct libnvme_ctrl *p)¶
Get tls_key_identity.
Parameters
const struct libnvme_ctrl *pThe
struct libnvme_ctrlinstance to query.
Return
The value of the tls_key_identity field, or NULL if not set.
-
void libnvme_ctrl_set_tls_key(struct libnvme_ctrl *p, const char *tls_key)¶
Set tls_key.
Parameters
struct libnvme_ctrl *pThe
struct libnvme_ctrlinstance to update.const char *tls_keyNew string; a copy is stored. Pass NULL to clear.
-
const char *libnvme_ctrl_get_tls_key(const struct libnvme_ctrl *p)¶
Get tls_key.
Parameters
const struct libnvme_ctrl *pThe
struct libnvme_ctrlinstance to query.
Return
The value of the tls_key field, or NULL if not set.
-
const char *libnvme_ctrl_get_cntrltype(const struct libnvme_ctrl *p)¶
Get cntrltype.
Parameters
const struct libnvme_ctrl *pThe
struct libnvme_ctrlinstance to query.
Return
The value of the cntrltype field, or NULL if not set.
-
const char *libnvme_ctrl_get_cntlid(const struct libnvme_ctrl *p)¶
Get cntlid.
Parameters
const struct libnvme_ctrl *pThe
struct libnvme_ctrlinstance to query.
Return
The value of the cntlid field, or NULL if not set.
-
const char *libnvme_ctrl_get_dctype(const struct libnvme_ctrl *p)¶
Get dctype.
Parameters
const struct libnvme_ctrl *pThe
struct libnvme_ctrlinstance to query.
Return
The value of the dctype field, or NULL if not set.
-
const char *libnvme_ctrl_get_phy_slot(const struct libnvme_ctrl *p)¶
Get phy_slot.
Parameters
const struct libnvme_ctrl *pThe
struct libnvme_ctrlinstance to query.
Return
The value of the phy_slot field, or NULL if not set.
-
const char *libnvme_ctrl_get_host_traddr(const struct libnvme_ctrl *p)¶
Get host_traddr.
Parameters
const struct libnvme_ctrl *pThe
struct libnvme_ctrlinstance to query.
Return
The value of the host_traddr field, or NULL if not set.
-
const char *libnvme_ctrl_get_host_iface(const struct libnvme_ctrl *p)¶
Get host_iface.
Parameters
const struct libnvme_ctrl *pThe
struct libnvme_ctrlinstance to query.
Return
The value of the host_iface field, or NULL if not set.
-
void libnvme_ctrl_set_discovery_ctrl(struct libnvme_ctrl *p, bool discovery_ctrl)¶
Set discovery_ctrl.
Parameters
struct libnvme_ctrl *pThe
struct libnvme_ctrlinstance to update.bool discovery_ctrlValue to assign to the discovery_ctrl field.
-
bool libnvme_ctrl_get_discovery_ctrl(const struct libnvme_ctrl *p)¶
Get discovery_ctrl.
Parameters
const struct libnvme_ctrl *pThe
struct libnvme_ctrlinstance to query.
Return
The value of the discovery_ctrl field.
-
void libnvme_ctrl_set_unique_discovery_ctrl(struct libnvme_ctrl *p, bool unique_discovery_ctrl)¶
Set unique_discovery_ctrl.
Parameters
struct libnvme_ctrl *pThe
struct libnvme_ctrlinstance to update.bool unique_discovery_ctrlValue to assign to the unique_discovery_ctrl field.
-
bool libnvme_ctrl_get_unique_discovery_ctrl(const struct libnvme_ctrl *p)¶
Get unique_discovery_ctrl.
Parameters
const struct libnvme_ctrl *pThe
struct libnvme_ctrlinstance to query.
Return
The value of the unique_discovery_ctrl field.
-
void libnvme_ctrl_set_discovered(struct libnvme_ctrl *p, bool discovered)¶
Set discovered.
Parameters
struct libnvme_ctrl *pThe
struct libnvme_ctrlinstance to update.bool discoveredValue to assign to the discovered field.
-
bool libnvme_ctrl_get_discovered(const struct libnvme_ctrl *p)¶
Get discovered.
Parameters
const struct libnvme_ctrl *pThe
struct libnvme_ctrlinstance to query.
Return
The value of the discovered field.
-
void libnvme_ctrl_set_persistent(struct libnvme_ctrl *p, bool persistent)¶
Set persistent.
Parameters
struct libnvme_ctrl *pThe
struct libnvme_ctrlinstance to update.bool persistentValue to assign to the persistent field.
-
bool libnvme_ctrl_get_persistent(const struct libnvme_ctrl *p)¶
Get persistent.
Parameters
const struct libnvme_ctrl *pThe
struct libnvme_ctrlinstance to query.
Return
The value of the persistent field.
-
int libnvme_ctrl_get_queue_size(const struct libnvme_ctrl *p)¶
Get queue_size.
Parameters
const struct libnvme_ctrl *pThe
struct libnvme_ctrlinstance to query.
Return
The value of the queue_size field.
-
int libnvme_ctrl_get_nr_io_queues(const struct libnvme_ctrl *p)¶
Get nr_io_queues.
Parameters
const struct libnvme_ctrl *pThe
struct libnvme_ctrlinstance to query.
Return
The value of the nr_io_queues field.
-
int libnvme_ctrl_get_reconnect_delay(const struct libnvme_ctrl *p)¶
Get reconnect_delay.
Parameters
const struct libnvme_ctrl *pThe
struct libnvme_ctrlinstance to query.
Return
The value of the reconnect_delay field.
-
int libnvme_ctrl_get_ctrl_loss_tmo(const struct libnvme_ctrl *p)¶
Get ctrl_loss_tmo.
Parameters
const struct libnvme_ctrl *pThe
struct libnvme_ctrlinstance to query.
Return
The value of the ctrl_loss_tmo field.
-
int libnvme_ctrl_get_fast_io_fail_tmo(const struct libnvme_ctrl *p)¶
Get fast_io_fail_tmo.
Parameters
const struct libnvme_ctrl *pThe
struct libnvme_ctrlinstance to query.
Return
The value of the fast_io_fail_tmo field.
-
int libnvme_ctrl_get_keep_alive_tmo(const struct libnvme_ctrl *p)¶
Get keep_alive_tmo.
Parameters
const struct libnvme_ctrl *pThe
struct libnvme_ctrlinstance to query.
Return
The value of the keep_alive_tmo field.
-
int libnvme_ctrl_get_nr_write_queues(const struct libnvme_ctrl *p)¶
Get nr_write_queues.
Parameters
const struct libnvme_ctrl *pThe
struct libnvme_ctrlinstance to query.
Return
The value of the nr_write_queues field.
-
int libnvme_ctrl_get_nr_poll_queues(const struct libnvme_ctrl *p)¶
Get nr_poll_queues.
Parameters
const struct libnvme_ctrl *pThe
struct libnvme_ctrlinstance to query.
Return
The value of the nr_poll_queues field.
-
int libnvme_ctrl_get_tos(const struct libnvme_ctrl *p)¶
Get tos.
Parameters
const struct libnvme_ctrl *pThe
struct libnvme_ctrlinstance to query.
Return
The value of the tos field.
-
long libnvme_ctrl_get_keyring_id(const struct libnvme_ctrl *p)¶
Get keyring_id.
Parameters
const struct libnvme_ctrl *pThe
struct libnvme_ctrlinstance to query.
Return
The value of the keyring_id field.
-
long libnvme_ctrl_get_tls_key_id(const struct libnvme_ctrl *p)¶
Get tls_key_id.
Parameters
const struct libnvme_ctrl *pThe
struct libnvme_ctrlinstance to query.
Return
The value of the tls_key_id field.
-
long libnvme_ctrl_get_tls_configured_key_id(const struct libnvme_ctrl *p)¶
Get tls_configured_key_id.
Parameters
const struct libnvme_ctrl *pThe
struct libnvme_ctrlinstance to query.
Return
The value of the tls_configured_key_id field.
-
bool libnvme_ctrl_get_duplicate_connect(const struct libnvme_ctrl *p)¶
Get duplicate_connect.
Parameters
const struct libnvme_ctrl *pThe
struct libnvme_ctrlinstance to query.
Return
The value of the duplicate_connect field.
-
bool libnvme_ctrl_get_disable_sqflow(const struct libnvme_ctrl *p)¶
Get disable_sqflow.
Parameters
const struct libnvme_ctrl *pThe
struct libnvme_ctrlinstance to query.
Return
The value of the disable_sqflow field.
-
bool libnvme_ctrl_get_hdr_digest(const struct libnvme_ctrl *p)¶
Get hdr_digest.
Parameters
const struct libnvme_ctrl *pThe
struct libnvme_ctrlinstance to query.
Return
The value of the hdr_digest field.
-
bool libnvme_ctrl_get_data_digest(const struct libnvme_ctrl *p)¶
Get data_digest.
Parameters
const struct libnvme_ctrl *pThe
struct libnvme_ctrlinstance to query.
Return
The value of the data_digest field.
-
bool libnvme_ctrl_get_tls(const struct libnvme_ctrl *p)¶
Get tls.
Parameters
const struct libnvme_ctrl *pThe
struct libnvme_ctrlinstance to query.
Return
The value of the tls field.
-
bool libnvme_ctrl_get_concat(const struct libnvme_ctrl *p)¶
Get concat.
Parameters
const struct libnvme_ctrl *pThe
struct libnvme_ctrlinstance to query.
Return
The value of the concat field.
-
const char *libnvme_subsystem_get_name(const struct libnvme_subsystem *p)¶
Get name.
Parameters
const struct libnvme_subsystem *pThe
struct libnvme_subsysteminstance to query.
Return
The value of the name field, or NULL if not set.
-
const char *libnvme_subsystem_get_sysfs_dir(const struct libnvme_subsystem *p)¶
Get sysfs_dir.
Parameters
const struct libnvme_subsystem *pThe
struct libnvme_subsysteminstance to query.
Return
The value of the sysfs_dir field, or NULL if not set.
-
const char *libnvme_subsystem_get_subsysnqn(const struct libnvme_subsystem *p)¶
Get subsysnqn.
Parameters
const struct libnvme_subsystem *pThe
struct libnvme_subsysteminstance to query.
Return
The value of the subsysnqn field, or NULL if not set.
-
const char *libnvme_subsystem_get_model(const struct libnvme_subsystem *p)¶
Get model.
Parameters
const struct libnvme_subsystem *pThe
struct libnvme_subsysteminstance to query.
Return
The value of the model field, or NULL if not set.
-
const char *libnvme_subsystem_get_serial(const struct libnvme_subsystem *p)¶
Get serial.
Parameters
const struct libnvme_subsystem *pThe
struct libnvme_subsysteminstance to query.
Return
The value of the serial field, or NULL if not set.
-
const char *libnvme_subsystem_get_firmware(const struct libnvme_subsystem *p)¶
Get firmware.
Parameters
const struct libnvme_subsystem *pThe
struct libnvme_subsysteminstance to query.
Return
The value of the firmware field, or NULL if not set.
-
const char *libnvme_subsystem_get_subsystype(const struct libnvme_subsystem *p)¶
Get subsystype.
Parameters
const struct libnvme_subsystem *pThe
struct libnvme_subsysteminstance to query.
Return
The value of the subsystype field, or NULL if not set.
-
void libnvme_subsystem_set_application(struct libnvme_subsystem *p, const char *application)¶
Set application.
Parameters
struct libnvme_subsystem *pThe
struct libnvme_subsysteminstance to update.const char *applicationNew string; a copy is stored. Pass NULL to clear.
-
const char *libnvme_subsystem_get_application(const struct libnvme_subsystem *p)¶
Get application.
Parameters
const struct libnvme_subsystem *pThe
struct libnvme_subsysteminstance to query.
Return
The value of the application field, or NULL if not set.
-
const char *libnvme_host_get_hostnqn(const struct libnvme_host *p)¶
Get hostnqn.
Parameters
const struct libnvme_host *pThe
struct libnvme_hostinstance to query.
Return
The value of the hostnqn field, or NULL if not set.
-
const char *libnvme_host_get_hostid(const struct libnvme_host *p)¶
Get hostid.
Parameters
const struct libnvme_host *pThe
struct libnvme_hostinstance to query.
Return
The value of the hostid field, or NULL if not set.
-
void libnvme_host_set_dhchap_host_key(struct libnvme_host *p, const char *dhchap_host_key)¶
Set dhchap_host_key.
Parameters
struct libnvme_host *pThe
struct libnvme_hostinstance to update.const char *dhchap_host_keyNew string; a copy is stored. Pass NULL to clear.
-
const char *libnvme_host_get_dhchap_host_key(const struct libnvme_host *p)¶
Get dhchap_host_key.
Parameters
const struct libnvme_host *pThe
struct libnvme_hostinstance to query.
Return
The value of the dhchap_host_key field, or NULL if not set.
-
void libnvme_host_set_hostsymname(struct libnvme_host *p, const char *hostsymname)¶
Set hostsymname.
Parameters
struct libnvme_host *pThe
struct libnvme_hostinstance to update.const char *hostsymnameNew string; a copy is stored. Pass NULL to clear.
-
const char *libnvme_host_get_hostsymname(const struct libnvme_host *p)¶
Get hostsymname.
Parameters
const struct libnvme_host *pThe
struct libnvme_hostinstance to query.
Return
The value of the hostsymname field, or NULL if not set.
-
void libnvme_fabric_options_set_cntlid(struct libnvme_fabric_options *p, bool cntlid)¶
Set cntlid.
Parameters
struct libnvme_fabric_options *pThe
struct libnvme_fabric_optionsinstance to update.bool cntlidValue to assign to the cntlid field.
-
bool libnvme_fabric_options_get_cntlid(const struct libnvme_fabric_options *p)¶
Get cntlid.
Parameters
const struct libnvme_fabric_options *pThe
struct libnvme_fabric_optionsinstance to query.
Return
The value of the cntlid field.
-
void libnvme_fabric_options_set_concat(struct libnvme_fabric_options *p, bool concat)¶
Set concat.
Parameters
struct libnvme_fabric_options *pThe
struct libnvme_fabric_optionsinstance to update.bool concatValue to assign to the concat field.
-
bool libnvme_fabric_options_get_concat(const struct libnvme_fabric_options *p)¶
Get concat.
Parameters
const struct libnvme_fabric_options *pThe
struct libnvme_fabric_optionsinstance to query.
Return
The value of the concat field.
-
void libnvme_fabric_options_set_ctrl_loss_tmo(struct libnvme_fabric_options *p, bool ctrl_loss_tmo)¶
Set ctrl_loss_tmo.
Parameters
struct libnvme_fabric_options *pThe
struct libnvme_fabric_optionsinstance to update.bool ctrl_loss_tmoValue to assign to the ctrl_loss_tmo field.
-
bool libnvme_fabric_options_get_ctrl_loss_tmo(const struct libnvme_fabric_options *p)¶
Get ctrl_loss_tmo.
Parameters
const struct libnvme_fabric_options *pThe
struct libnvme_fabric_optionsinstance to query.
Return
The value of the ctrl_loss_tmo field.
-
void libnvme_fabric_options_set_data_digest(struct libnvme_fabric_options *p, bool data_digest)¶
Set data_digest.
Parameters
struct libnvme_fabric_options *pThe
struct libnvme_fabric_optionsinstance to update.bool data_digestValue to assign to the data_digest field.
-
bool libnvme_fabric_options_get_data_digest(const struct libnvme_fabric_options *p)¶
Get data_digest.
Parameters
const struct libnvme_fabric_options *pThe
struct libnvme_fabric_optionsinstance to query.
Return
The value of the data_digest field.
-
void libnvme_fabric_options_set_dhchap_ctrl_secret(struct libnvme_fabric_options *p, bool dhchap_ctrl_secret)¶
Set dhchap_ctrl_secret.
Parameters
struct libnvme_fabric_options *pThe
struct libnvme_fabric_optionsinstance to update.bool dhchap_ctrl_secretValue to assign to the dhchap_ctrl_secret field.
-
bool libnvme_fabric_options_get_dhchap_ctrl_secret(const struct libnvme_fabric_options *p)¶
Get dhchap_ctrl_secret.
Parameters
const struct libnvme_fabric_options *pThe
struct libnvme_fabric_optionsinstance to query.
Return
The value of the dhchap_ctrl_secret field.
-
void libnvme_fabric_options_set_dhchap_secret(struct libnvme_fabric_options *p, bool dhchap_secret)¶
Set dhchap_secret.
Parameters
struct libnvme_fabric_options *pThe
struct libnvme_fabric_optionsinstance to update.bool dhchap_secretValue to assign to the dhchap_secret field.
-
bool libnvme_fabric_options_get_dhchap_secret(const struct libnvme_fabric_options *p)¶
Get dhchap_secret.
Parameters
const struct libnvme_fabric_options *pThe
struct libnvme_fabric_optionsinstance to query.
Return
The value of the dhchap_secret field.
-
void libnvme_fabric_options_set_disable_sqflow(struct libnvme_fabric_options *p, bool disable_sqflow)¶
Set disable_sqflow.
Parameters
struct libnvme_fabric_options *pThe
struct libnvme_fabric_optionsinstance to update.bool disable_sqflowValue to assign to the disable_sqflow field.
-
bool libnvme_fabric_options_get_disable_sqflow(const struct libnvme_fabric_options *p)¶
Get disable_sqflow.
Parameters
const struct libnvme_fabric_options *pThe
struct libnvme_fabric_optionsinstance to query.
Return
The value of the disable_sqflow field.
-
void libnvme_fabric_options_set_discovery(struct libnvme_fabric_options *p, bool discovery)¶
Set discovery.
Parameters
struct libnvme_fabric_options *pThe
struct libnvme_fabric_optionsinstance to update.bool discoveryValue to assign to the discovery field.
-
bool libnvme_fabric_options_get_discovery(const struct libnvme_fabric_options *p)¶
Get discovery.
Parameters
const struct libnvme_fabric_options *pThe
struct libnvme_fabric_optionsinstance to query.
Return
The value of the discovery field.
-
void libnvme_fabric_options_set_duplicate_connect(struct libnvme_fabric_options *p, bool duplicate_connect)¶
Set duplicate_connect.
Parameters
struct libnvme_fabric_options *pThe
struct libnvme_fabric_optionsinstance to update.bool duplicate_connectValue to assign to the duplicate_connect field.
-
bool libnvme_fabric_options_get_duplicate_connect(const struct libnvme_fabric_options *p)¶
Get duplicate_connect.
Parameters
const struct libnvme_fabric_options *pThe
struct libnvme_fabric_optionsinstance to query.
Return
The value of the duplicate_connect field.
-
void libnvme_fabric_options_set_fast_io_fail_tmo(struct libnvme_fabric_options *p, bool fast_io_fail_tmo)¶
Set fast_io_fail_tmo.
Parameters
struct libnvme_fabric_options *pThe
struct libnvme_fabric_optionsinstance to update.bool fast_io_fail_tmoValue to assign to the fast_io_fail_tmo field.
-
bool libnvme_fabric_options_get_fast_io_fail_tmo(const struct libnvme_fabric_options *p)¶
Get fast_io_fail_tmo.
Parameters
const struct libnvme_fabric_options *pThe
struct libnvme_fabric_optionsinstance to query.
Return
The value of the fast_io_fail_tmo field.
-
void libnvme_fabric_options_set_hdr_digest(struct libnvme_fabric_options *p, bool hdr_digest)¶
Set hdr_digest.
Parameters
struct libnvme_fabric_options *pThe
struct libnvme_fabric_optionsinstance to update.bool hdr_digestValue to assign to the hdr_digest field.
-
bool libnvme_fabric_options_get_hdr_digest(const struct libnvme_fabric_options *p)¶
Get hdr_digest.
Parameters
const struct libnvme_fabric_options *pThe
struct libnvme_fabric_optionsinstance to query.
Return
The value of the hdr_digest field.
-
void libnvme_fabric_options_set_host_iface(struct libnvme_fabric_options *p, bool host_iface)¶
Set host_iface.
Parameters
struct libnvme_fabric_options *pThe
struct libnvme_fabric_optionsinstance to update.bool host_ifaceValue to assign to the host_iface field.
-
bool libnvme_fabric_options_get_host_iface(const struct libnvme_fabric_options *p)¶
Get host_iface.
Parameters
const struct libnvme_fabric_options *pThe
struct libnvme_fabric_optionsinstance to query.
Return
The value of the host_iface field.
-
void libnvme_fabric_options_set_host_traddr(struct libnvme_fabric_options *p, bool host_traddr)¶
Set host_traddr.
Parameters
struct libnvme_fabric_options *pThe
struct libnvme_fabric_optionsinstance to update.bool host_traddrValue to assign to the host_traddr field.
-
bool libnvme_fabric_options_get_host_traddr(const struct libnvme_fabric_options *p)¶
Get host_traddr.
Parameters
const struct libnvme_fabric_options *pThe
struct libnvme_fabric_optionsinstance to query.
Return
The value of the host_traddr field.
-
void libnvme_fabric_options_set_hostid(struct libnvme_fabric_options *p, bool hostid)¶
Set hostid.
Parameters
struct libnvme_fabric_options *pThe
struct libnvme_fabric_optionsinstance to update.bool hostidValue to assign to the hostid field.
-
bool libnvme_fabric_options_get_hostid(const struct libnvme_fabric_options *p)¶
Get hostid.
Parameters
const struct libnvme_fabric_options *pThe
struct libnvme_fabric_optionsinstance to query.
Return
The value of the hostid field.
-
void libnvme_fabric_options_set_hostnqn(struct libnvme_fabric_options *p, bool hostnqn)¶
Set hostnqn.
Parameters
struct libnvme_fabric_options *pThe
struct libnvme_fabric_optionsinstance to update.bool hostnqnValue to assign to the hostnqn field.
-
bool libnvme_fabric_options_get_hostnqn(const struct libnvme_fabric_options *p)¶
Get hostnqn.
Parameters
const struct libnvme_fabric_options *pThe
struct libnvme_fabric_optionsinstance to query.
Return
The value of the hostnqn field.
-
void libnvme_fabric_options_set_instance(struct libnvme_fabric_options *p, bool instance)¶
Set instance.
Parameters
struct libnvme_fabric_options *pThe
struct libnvme_fabric_optionsinstance to update.bool instanceValue to assign to the instance field.
-
bool libnvme_fabric_options_get_instance(const struct libnvme_fabric_options *p)¶
Get instance.
Parameters
const struct libnvme_fabric_options *pThe
struct libnvme_fabric_optionsinstance to query.
Return
The value of the instance field.
-
void libnvme_fabric_options_set_keep_alive_tmo(struct libnvme_fabric_options *p, bool keep_alive_tmo)¶
Set keep_alive_tmo.
Parameters
struct libnvme_fabric_options *pThe
struct libnvme_fabric_optionsinstance to update.bool keep_alive_tmoValue to assign to the keep_alive_tmo field.
-
bool libnvme_fabric_options_get_keep_alive_tmo(const struct libnvme_fabric_options *p)¶
Get keep_alive_tmo.
Parameters
const struct libnvme_fabric_options *pThe
struct libnvme_fabric_optionsinstance to query.
Return
The value of the keep_alive_tmo field.
-
void libnvme_fabric_options_set_keyring(struct libnvme_fabric_options *p, bool keyring)¶
Set keyring.
Parameters
struct libnvme_fabric_options *pThe
struct libnvme_fabric_optionsinstance to update.bool keyringValue to assign to the keyring field.
-
bool libnvme_fabric_options_get_keyring(const struct libnvme_fabric_options *p)¶
Get keyring.
Parameters
const struct libnvme_fabric_options *pThe
struct libnvme_fabric_optionsinstance to query.
Return
The value of the keyring field.
-
void libnvme_fabric_options_set_nqn(struct libnvme_fabric_options *p, bool nqn)¶
Set nqn.
Parameters
struct libnvme_fabric_options *pThe
struct libnvme_fabric_optionsinstance to update.bool nqnValue to assign to the nqn field.
-
bool libnvme_fabric_options_get_nqn(const struct libnvme_fabric_options *p)¶
Get nqn.
Parameters
const struct libnvme_fabric_options *pThe
struct libnvme_fabric_optionsinstance to query.
Return
The value of the nqn field.
-
void libnvme_fabric_options_set_nr_io_queues(struct libnvme_fabric_options *p, bool nr_io_queues)¶
Set nr_io_queues.
Parameters
struct libnvme_fabric_options *pThe
struct libnvme_fabric_optionsinstance to update.bool nr_io_queuesValue to assign to the nr_io_queues field.
-
bool libnvme_fabric_options_get_nr_io_queues(const struct libnvme_fabric_options *p)¶
Get nr_io_queues.
Parameters
const struct libnvme_fabric_options *pThe
struct libnvme_fabric_optionsinstance to query.
Return
The value of the nr_io_queues field.
-
void libnvme_fabric_options_set_nr_poll_queues(struct libnvme_fabric_options *p, bool nr_poll_queues)¶
Set nr_poll_queues.
Parameters
struct libnvme_fabric_options *pThe
struct libnvme_fabric_optionsinstance to update.bool nr_poll_queuesValue to assign to the nr_poll_queues field.
-
bool libnvme_fabric_options_get_nr_poll_queues(const struct libnvme_fabric_options *p)¶
Get nr_poll_queues.
Parameters
const struct libnvme_fabric_options *pThe
struct libnvme_fabric_optionsinstance to query.
Return
The value of the nr_poll_queues field.
-
void libnvme_fabric_options_set_nr_write_queues(struct libnvme_fabric_options *p, bool nr_write_queues)¶
Set nr_write_queues.
Parameters
struct libnvme_fabric_options *pThe
struct libnvme_fabric_optionsinstance to update.bool nr_write_queuesValue to assign to the nr_write_queues field.
-
bool libnvme_fabric_options_get_nr_write_queues(const struct libnvme_fabric_options *p)¶
Get nr_write_queues.
Parameters
const struct libnvme_fabric_options *pThe
struct libnvme_fabric_optionsinstance to query.
Return
The value of the nr_write_queues field.
-
void libnvme_fabric_options_set_queue_size(struct libnvme_fabric_options *p, bool queue_size)¶
Set queue_size.
Parameters
struct libnvme_fabric_options *pThe
struct libnvme_fabric_optionsinstance to update.bool queue_sizeValue to assign to the queue_size field.
-
bool libnvme_fabric_options_get_queue_size(const struct libnvme_fabric_options *p)¶
Get queue_size.
Parameters
const struct libnvme_fabric_options *pThe
struct libnvme_fabric_optionsinstance to query.
Return
The value of the queue_size field.
-
void libnvme_fabric_options_set_reconnect_delay(struct libnvme_fabric_options *p, bool reconnect_delay)¶
Set reconnect_delay.
Parameters
struct libnvme_fabric_options *pThe
struct libnvme_fabric_optionsinstance to update.bool reconnect_delayValue to assign to the reconnect_delay field.
-
bool libnvme_fabric_options_get_reconnect_delay(const struct libnvme_fabric_options *p)¶
Get reconnect_delay.
Parameters
const struct libnvme_fabric_options *pThe
struct libnvme_fabric_optionsinstance to query.
Return
The value of the reconnect_delay field.
-
void libnvme_fabric_options_set_tls(struct libnvme_fabric_options *p, bool tls)¶
Set tls.
Parameters
struct libnvme_fabric_options *pThe
struct libnvme_fabric_optionsinstance to update.bool tlsValue to assign to the tls field.
-
bool libnvme_fabric_options_get_tls(const struct libnvme_fabric_options *p)¶
Get tls.
Parameters
const struct libnvme_fabric_options *pThe
struct libnvme_fabric_optionsinstance to query.
Return
The value of the tls field.
-
void libnvme_fabric_options_set_tls_key(struct libnvme_fabric_options *p, bool tls_key)¶
Set tls_key.
Parameters
struct libnvme_fabric_options *pThe
struct libnvme_fabric_optionsinstance to update.bool tls_keyValue to assign to the tls_key field.
-
bool libnvme_fabric_options_get_tls_key(const struct libnvme_fabric_options *p)¶
Get tls_key.
Parameters
const struct libnvme_fabric_options *pThe
struct libnvme_fabric_optionsinstance to query.
Return
The value of the tls_key field.
-
void libnvme_fabric_options_set_tos(struct libnvme_fabric_options *p, bool tos)¶
Set tos.
Parameters
struct libnvme_fabric_options *pThe
struct libnvme_fabric_optionsinstance to update.bool tosValue to assign to the tos field.
-
bool libnvme_fabric_options_get_tos(const struct libnvme_fabric_options *p)¶
Get tos.
Parameters
const struct libnvme_fabric_options *pThe
struct libnvme_fabric_optionsinstance to query.
Return
The value of the tos field.
-
void libnvme_fabric_options_set_traddr(struct libnvme_fabric_options *p, bool traddr)¶
Set traddr.
Parameters
struct libnvme_fabric_options *pThe
struct libnvme_fabric_optionsinstance to update.bool traddrValue to assign to the traddr field.
-
bool libnvme_fabric_options_get_traddr(const struct libnvme_fabric_options *p)¶
Get traddr.
Parameters
const struct libnvme_fabric_options *pThe
struct libnvme_fabric_optionsinstance to query.
Return
The value of the traddr field.
-
void libnvme_fabric_options_set_transport(struct libnvme_fabric_options *p, bool transport)¶
Set transport.
Parameters
struct libnvme_fabric_options *pThe
struct libnvme_fabric_optionsinstance to update.bool transportValue to assign to the transport field.
-
bool libnvme_fabric_options_get_transport(const struct libnvme_fabric_options *p)¶
Get transport.
Parameters
const struct libnvme_fabric_options *pThe
struct libnvme_fabric_optionsinstance to query.
Return
The value of the transport field.
-
void libnvme_fabric_options_set_trsvcid(struct libnvme_fabric_options *p, bool trsvcid)¶
Set trsvcid.
Parameters
struct libnvme_fabric_options *pThe
struct libnvme_fabric_optionsinstance to update.bool trsvcidValue to assign to the trsvcid field.
-
bool libnvme_fabric_options_get_trsvcid(const struct libnvme_fabric_options *p)¶
Get trsvcid.
Parameters
const struct libnvme_fabric_options *pThe
struct libnvme_fabric_optionsinstance to query.
Return
The value of the trsvcid field.