Searched refs:nqn (Results 1 – 12 of 12) sorted by relevance
| /freebsd/lib/libnvmf/ |
| H A D | nvmf_controller.c | 20 nvmf_nqn_valid_strict(const char *nqn) in nvmf_nqn_valid_strict() argument 24 if (!nvmf_nqn_valid(nqn)) in nvmf_nqn_valid_strict() 31 len = strlen(nqn); in nvmf_nqn_valid_strict() 39 if (memcmp("nqn.", nqn, strlen("nqn.")) != 0) in nvmf_nqn_valid_strict() 41 nqn += strlen("nqn."); in nvmf_nqn_valid_strict() 45 if (!isdigit(nqn[i])) in nvmf_nqn_valid_strict() 48 nqn += 4; in nvmf_nqn_valid_strict() 51 if (nqn[0] != '-') in nvmf_nqn_valid_strict() 53 nqn++; in nvmf_nqn_valid_strict() 57 if (!isdigit(nqn[i])) in nvmf_nqn_valid_strict() [all …]
|
| H A D | libnvmf.h | 121 bool nvmf_nqn_valid(const char *nqn); 122 bool nvmf_nqn_valid_strict(const char *nqn); 312 int nvmf_nqn_from_hostuuid(char nqn[NVMF_NQN_MAX_LEN]);
|
| H A D | nvmf_host.c | 473 nvmf_nqn_from_hostuuid(char nqn[NVMF_NQN_MAX_LEN]) in nvmf_nqn_from_hostuuid() 482 strlcpy(nqn, NVMF_NQN_UUID_PRE, NVMF_NQN_MAX_LEN); in nvmf_nqn_from_hostuuid() 483 strlcat(nqn, hostuuid_str, NVMF_NQN_MAX_LEN); in nvmf_nqn_from_hostuuid()
|
| /freebsd/tools/tools/nvmf/nvmfd/ |
| H A D | nvmfd.c | 158 static char nqn[NVMF_NQN_MAX_LEN]; in main() local 228 error = nvmf_nqn_from_hostuuid(nqn); in main() 231 subnqn = nqn; in main()
|
| H A D | io.c | 42 static const char *nqn; variable 66 nqn = subnqn; in init_io() 86 shutdown_ctl_port(nqn); in shutdown_io() 503 nvmf_init_io_controller_data(qp, serial, nqn, device_count(), in connect_admin_qpair() 638 if (strcmp(data.subnqn, nqn) != 0) { in io_socket_thread()
|
| /freebsd/usr.sbin/ctld/ |
| H A D | kernel.cc | 132 std::string nqn; member 331 cur_port->nqn = std::move(str); in cctl_end_pelement() 500 if (port.nqn.empty() || port.ctld_transport_group_name.empty()) { in add_nvmf_port() 506 const char *nqn = port.nqn.c_str(); in add_nvmf_port() local 507 struct target *targ = conf->find_controller(nqn); in add_nvmf_port() 509 targ = conf->add_controller(nqn); in add_nvmf_port() 511 log_warnx("Failed to add controller \"%s\"", nqn); in add_nvmf_port() 531 nqn, tg_name); in add_nvmf_port()
|
| H A D | nvmf_discovery.cc | 223 const char *nqn = (const char *)data.hostnqn; in build_discovery_log_page() local 224 std::string hostnqn(nqn, strnlen(nqn, sizeof(data.hostnqn))); in build_discovery_log_page()
|
| H A D | token.l | 69 host-nqn { return HOST_NQN; }
|
| H A D | ctld.hh | 113 bool add_host_nqn(std::string_view nqn); 114 bool host_permitted(std::string_view nqn) const;
|
| H A D | ctld.cc | 276 auth_group::add_host_nqn(std::string_view nqn) in add_host_nqn() argument 279 ag_host_names.emplace(nqn); in add_host_nqn() 284 auth_group::host_permitted(std::string_view nqn) const in host_permitted() 289 return (ag_host_names.count(std::string(nqn)) != 0); in host_permitted()
|
| /freebsd/sbin/nvmecontrol/ |
| H A D | fabrics.c | 25 static char nqn[NVMF_NQN_MAX_LEN]; variable 42 error = nvmf_nqn_from_hostuuid(nqn); in init_hostid() 57 return (nqn); in nvmf_default_hostnqn() 247 hostnqn = nqn; in connect_discovery_adminq()
|
| /freebsd/sys/dev/nvmf/controller/ |
| H A D | nvmft_subr.c | 22 nvmf_nqn_valid(const char *nqn) in nvmf_nqn_valid() argument 26 len = strnlen(nqn, NVME_NQN_FIELD_SIZE); in nvmf_nqn_valid()
|