No point in trying to fetch the host details from the controller;
if required the caller can walk up the chain directly.
Signed-off-by: Hannes Reinecke <hare@suse.de>
return c->host_iface;
}
-const char *nvme_ctrl_get_hostnqn(nvme_ctrl_t c)
-{
- if (!c->s || !c->s->h)
- return default_host->hostnqn;
- return c->s->h->hostnqn;
-}
-
-const char *nvme_ctrl_get_hostid(nvme_ctrl_t c)
-{
- if (!c->s || !c->s->h)
- return default_host->hostid;
- return c->s->h->hostid;
-}
-
struct nvme_fabrics_config *nvme_ctrl_get_config(nvme_ctrl_t c)
{
return &c->cfg;
*/
const char *nvme_ctrl_get_subsysnqn(nvme_ctrl_t c);
-/**
- * nvme_ctrl_get_hostnqn() -
- * @c:
- *
- * Return:
- */
-const char *nvme_ctrl_get_hostnqn(nvme_ctrl_t c);
-
-/**
- * nvme_ctrl_get_hostid() -
- * @c:
- *
- * Return:
- */
-const char *nvme_ctrl_get_hostid(nvme_ctrl_t c);
-
/**
* nvme_ctrl_get_subsystem() -
* @c: