Home
last modified time | relevance | path

Searched refs:nvlist_get_number (Results 1 – 25 of 46) sorted by relevance

12

/freebsd/lib/libcasper/services/cap_net/
H A Dcap_net.c104 hp->h_addrtype = (int)nvlist_get_number(nvl, "addrtype"); in hostent_unpack()
105 hp->h_length = (int)nvlist_get_number(nvl, "length"); in hostent_unpack()
107 nitems = (unsigned int)nvlist_get_number(nvl, "naliases"); in hostent_unpack()
121 nitems = (unsigned int)nvlist_get_number(nvl, "naddrs"); in hostent_unpack()
159 if (nvlist_get_number(nvl, "error") != 0) { in request_cb()
160 serrno = (int)nvlist_get_number(nvl, "error"); in request_cb()
211 if (nvlist_get_number(nvl, "error") != 0) { in cap_gethostbyname2()
212 h_errno = (int)nvlist_get_number(nvl, "error"); in cap_gethostbyname2()
238 if (nvlist_get_number(nvl, "error") != 0) { in cap_gethostbyaddr()
239 h_errno = (int)nvlist_get_number(nvl, "error"); in cap_gethostbyaddr()
[all …]
/freebsd/lib/libpfctl/
H A Dlibpfctl.c462 status->since = nvlist_get_number(nvl, "since"); in pfctl_get_status()
463 status->debug = nvlist_get_number(nvl, "debug"); in pfctl_get_status()
464 status->hostid = ntohl(nvlist_get_number(nvl, "hostid")); in pfctl_get_status()
465 status->states = nvlist_get_number(nvl, "states"); in pfctl_get_status()
466 status->src_nodes = nvlist_get_number(nvl, "src_nodes"); in pfctl_get_status()
468 status->reass = nvlist_get_number(nvl, "reass"); in pfctl_get_status()
612 addr->type = nvlist_get_number(nvl, "type"); in pf_nvaddr_wrap_to_addr_wrap()
613 addr->iflags = nvlist_get_number(nvl, "iflags"); in pf_nvaddr_wrap_to_addr_wrap()
617 addr->p.dyncnt = nvlist_get_number(nvl, "dyncnt"); in pf_nvaddr_wrap_to_addr_wrap()
622 addr->p.tblcnt = nvlist_get_number(nvl, "tblcnt"); in pf_nvaddr_wrap_to_addr_wrap()
[all …]
/freebsd/sys/netpfil/pf/
H A Dpfsync_nv.c54 af = nvlist_get_number(nvl, "af"); in pfsync_syncpeer_nvlist_to_sockaddr()
142 status->maxupdates = nvlist_get_number(nvl, "maxupdates"); in pfsync_nvstatus_to_kstatus()
143 status->version = nvlist_get_number(nvl, "version"); in pfsync_nvstatus_to_kstatus()
144 status->flags = nvlist_get_number(nvl, "flags"); in pfsync_nvstatus_to_kstatus()
/freebsd/lib/libcasper/services/cap_syslog/
H A Dcap_syslog.c123 omask = nvlist_get_number(nvl, "omask"); in cap_setlogmask()
142 syslog(nvlist_get_number(nvlin, "priority"), "%s", in slog_vsyslog()
160 logopt = nvlist_get_number(nvlin, "logopt"); in slog_openlog()
172 openlog(LogTag, logopt, nvlist_get_number(nvlin, "facility")); in slog_openlog()
198 omask = setlogmask(nvlist_get_number(nvlin, "maskpri")); in slog_setlogmask()
/freebsd/usr.sbin/syslogd/
H A Dsyslogd_cap_log.c54 error = nvlist_get_number(nvl, "error"); in cap_p_open()
74 filed_idx = nvlist_get_number(nvlin, "filed_idx"); in casper_p_open()
113 error = nvlist_get_number(nvl, "error"); in cap_ttymsg()
147 tmout = nvlist_get_number(nvlin, "tmout"); in casper_ttymsg()
178 error = nvlist_get_number(nvl, "error"); in cap_wallmsg()
H A Dsyslogd_cap_config.c77 pfilter->prop_type = nvlist_get_number(nvl_prop_filter, "prop_type"); in nvlist_to_prop_filter()
78 pfilter->cmp_type = nvlist_get_number(nvl_prop_filter, "cmp_type"); in nvlist_to_prop_filter()
79 pfilter->cmp_flags = nvlist_get_number(nvl_prop_filter, "cmp_flags"); in nvlist_to_prop_filter()
177 f_type = filed->f_type = nvlist_get_number(nvl_filed, "f_type"); in nvlist_to_filed()
199 filed->f_flags = nvlist_get_number(nvl_filed, "f_flags"); in nvlist_to_filed()
307 if (nvlist_get_number(filed_list[i], "f_type") == F_PIPE) { in casper_readconfigfile()
/freebsd/lib/libcasper/libcasper/
H A Dlibcasper.c184 if (nvlist_get_number(nvl, "error") != 0) { in cap_clone()
185 errno = (int)nvlist_get_number(nvl, "error"); in cap_clone()
241 error = (int)nvlist_get_number(nvlmsg, "error"); in cap_limit_set()
262 error = (int)nvlist_get_number(nvlmsg, "error"); in cap_limit_get()
324 error = (int)nvlist_get_number(nvl, "error"); in cap_service_open()
H A Dzygote.c78 error = (int)nvlist_get_number(nvl, "error"); in zygote_clone()
129 funcidx = nvlist_get_number(nvlin, "funcidx"); in zygote_main()
/freebsd/lib/libnv/tests/
H A Dnvlist_send_recv_test.c129 ATF_REQUIRE(nvlist_get_number(nvl, name) == 0); in send_nvlist_parent()
135 ATF_REQUIRE(nvlist_get_number(nvl, name) == 1); in send_nvlist_parent()
141 ATF_REQUIRE((int)nvlist_get_number(nvl, name) == -1); in send_nvlist_parent()
147 ATF_REQUIRE(nvlist_get_number(nvl, name) == UINT64_MAX); in send_nvlist_parent()
153 ATF_REQUIRE((int64_t)nvlist_get_number(nvl, name) == INT64_MIN); in send_nvlist_parent()
159 ATF_REQUIRE((int64_t)nvlist_get_number(nvl, name) == INT64_MAX); in send_nvlist_parent()
243 ATF_REQUIRE(nvlist_get_number(cnvl, cname) == 0); in send_nvlist_parent()
249 ATF_REQUIRE(nvlist_get_number(cnvl, cname) == 1); in send_nvlist_parent()
255 ATF_REQUIRE((int)nvlist_get_number(cnvl, cname) == -1); in send_nvlist_parent()
261 ATF_REQUIRE(nvlist_get_number(cnvl, cname) == UINT64_MAX); in send_nvlist_parent()
[all …]
H A Dnvlist_append_test.c107 CHECK(nvlist_get_number(items[0], "key1") == 10); in main()
108 CHECK(nvlist_get_number(items[1], "key1") == 20); in main()
/freebsd/usr.sbin/iovctl/
H A Diovctl.c330 (uintmax_t)nvlist_get_number(parameter, in print_default_value()
334 (uintmax_t)nvlist_get_number(parameter, in print_default_value()
338 (uintmax_t)nvlist_get_number(parameter, in print_default_value()
342 (uintmax_t)nvlist_get_number(parameter, in print_default_value()
349 uint16_t vlan = nvlist_get_number(parameter, DEFAULT_SCHEMA_NAME); in print_default_value()
H A Dvalidate.c123 nvlist_get_number(defaults, name)); in apply_subsystem_defaults()
207 return (nvlist_get_number(iov, "num_vfs")); in get_num_vfs()
/freebsd/contrib/wireguard-tools/
H A Dipc-freebsd.h88 number = nvlist_get_number(nvl_device, "listen-port"); in kernel_get_device()
95 number = nvlist_get_number(nvl_device, "user-cookie"); in kernel_get_device()
145 number = nvlist_get_number(nvl_peers[i], "persistent-keepalive-interval"); in kernel_get_device()
158 peer->rx_bytes = nvlist_get_number(nvl_peers[i], "rx-bytes"); in kernel_get_device()
160 peer->tx_bytes = nvlist_get_number(nvl_peers[i], "tx-bytes"); in kernel_get_device()
180 number = nvlist_get_number(nvl_aips[j], "cidr"); in kernel_get_device()
/freebsd/sys/dev/sound/pcm/
H A Dsndstat.c856 if (nvlist_get_number(nvlist, SNDST_DSPS_PCHAN) > 0) { in sndstat_dsp_nvlist_is_sane()
867 if (nvlist_get_number(nvlist, SNDST_DSPS_RCHAN) > 0) { in sndstat_dsp_nvlist_is_sane()
887 *min_rate = nvlist_get_number(nv, SNDST_DSPS_INFO_MIN_RATE); in sndstat_get_diinfo_nv()
888 *max_rate = nvlist_get_number(nv, SNDST_DSPS_INFO_MAX_RATE); in sndstat_get_diinfo_nv()
889 *formats = nvlist_get_number(nv, SNDST_DSPS_INFO_FORMATS); in sndstat_get_diinfo_nv()
890 *min_chn = nvlist_get_number(nv, SNDST_DSPS_INFO_MIN_CHN); in sndstat_get_diinfo_nv()
891 *max_chn = nvlist_get_number(nv, SNDST_DSPS_INFO_MAX_CHN); in sndstat_get_diinfo_nv()
914 pchan = nvlist_get_number(nvlist, SNDST_DSPS_PCHAN); in sndstat_dsp_unpack_nvlist()
915 rchan = nvlist_get_number(nvlist, SNDST_DSPS_RCHAN); in sndstat_dsp_unpack_nvlist()
923 pminrate = nvlist_get_number(nvlist, "pminrate"); in sndstat_dsp_unpack_nvlist()
[all …]
/freebsd/sbin/ifconfig/
H A Difpfsync.c135 af = nvlist_get_number(nvl, "af"); in pfsync_syncpeer_nvlist_to_sockaddr()
364 maxupdates = nvlist_get_number(nvl, "maxupdates"); in pfsync_status()
366 version = nvlist_get_number(nvl, "version"); in pfsync_status()
368 flags = nvlist_get_number(nvl, "flags"); in pfsync_status()
/freebsd/sys/dev/pci/
H A Dpci_iov_schema.c320 value = nvlist_get_number(config, name); in pci_iov_schema_validate_uint()
360 vlan = nvlist_get_number(config, name); in pci_iov_schema_validate_vlan()
383 nvlist_get_number(param_schema, "default")); in pci_iov_config_add_default()
423 defaultVal = nvlist_get_number(param, DEFAULT_SCHEMA_NAME); in pci_iov_validate_uint_default()
457 vlan = nvlist_get_number(param, DEFAULT_SCHEMA_NAME); in pci_iov_validate_vlan_default()
918 return (nvlist_get_number(iov, "num_vfs")); in pci_iov_config_get_num_vfs()
/freebsd/lib/libcasper/services/cap_fileargs/
H A Dcap_fileargs.c154 if (nvlist_get_number(nvl, "error") != 0) { in fileargs_fetch()
155 serrno = (int)nvlist_get_number(nvl, "error"); in fileargs_fetch()
292 flags = nvlist_get_number(limits, "flags"); in fileargs_cinitnv()
293 (void)nvlist_get_number(limits, "operations"); in fileargs_cinitnv()
629 capmode = (mode_t)nvlist_get_number(newlimits, "mode"); in fileargs_limit()
H A Dcap_fileargs.h101 nvlist_get_number(limits, "flags"),
104 nvlist_get_number(limits, "operations"));
/freebsd/sbin/nvmecontrol/
H A Ddevlist.c176 last_disconnect.tv_sec = nvlist_get_number(nvl_ts, "tv_sec"); in print_controller_info()
177 last_disconnect.tv_nsec = nvlist_get_number(nvl_ts, "tv_nsec"); in print_controller_info()
H A Dreconnect.c199 nvlist_get_number(rparams, "num_io_queues"), in reconnect_by_params()
200 nvlist_get_number(rparams, "io_qsize"), dle); in reconnect_by_params()
/freebsd/sys/net/
H A Dif_ovpn.c335 af = nvlist_get_number(nvl, "af"); in ovpn_nvlist_to_sockaddr()
348 in->sin_port = nvlist_get_number(nvl, "port"); in ovpn_nvlist_to_sockaddr()
362 in6->sin6_port = nvlist_get_number(nvl, "port"); in ovpn_nvlist_to_sockaddr()
528 peerid = nvlist_get_number(nvl, "peerid"); in ovpn_new_peer()
535 fd = nvlist_get_number(nvl, "fd"); in ovpn_new_peer()
712 peerid = nvlist_get_number(nvl, "peerid"); in ovpn_del_peer()
831 slot = nvlist_get_number(nvl, "slot"); in ovpn_set_key()
835 keyid = nvlist_get_number(nvl, "keyid"); in ovpn_set_key()
839 peerid = nvlist_get_number(nvl, "peerid"); in ovpn_set_key()
929 peer = ovpn_find_peer(sc, nvlist_get_number(nvl, "peerid")); in ovpn_swap_keys()
[all …]
/freebsd/sys/dev/nvmf/
H A Dnvmf_transport.c298 qsize = nvlist_get_number(nvl, "qsize"); in nvmf_validate_qpair_nvlist()
307 value = nvlist_get_number(nvl, "sqhd"); in nvmf_validate_qpair_nvlist()
311 value = nvlist_get_number(nvl, "sqtail"); in nvmf_validate_qpair_nvlist()
/freebsd/sys/dev/nvmf/host/
H A Dnvmf.c238 num_io_queues != nvlist_get_number(rparams, "num_io_queues")) in nvmf_copyin_handoff()
246 qsize = nvlist_get_number(rparams, "io_qsize"); in nvmf_copyin_handoff()
248 if (nvlist_get_number(io[i], "qsize") != qsize) in nvmf_copyin_handoff()
293 trtype = nvlist_get_number(nvl, "trtype"); in nvmf_establish_connection()
502 sc->trtype = nvlist_get_number(nvl, "trtype"); in nvmf_attach()
545 sc->max_pending_io = nvlist_get_number(io[0], "qsize") * in nvmf_attach()
695 if (sc->trtype != nvlist_get_number(nvl, "trtype")) { in nvmf_reconnect_host()
H A Dnvmf_qpair.c297 qp->sqhd = nvlist_get_number(nvl, "sqhd"); in nvmf_init_qp()
298 qp->sqtail = nvlist_get_number(nvl, "sqtail"); in nvmf_init_qp()
307 qp->num_commands = nvlist_get_number(nvl, "qsize") - 1; in nvmf_init_qp()
/freebsd/usr.sbin/rtsold/
H A Dcap_sendmsg.c266 ifindex = (uint32_t)nvlist_get_number(nvlin, "ifindex"); in sendmsg_command()
267 linkid = (uint32_t)nvlist_get_number(nvlin, "linkid"); in sendmsg_command()

12