Home
last modified time | relevance | path

Searched refs:nvlist_add_string (Results 1 – 25 of 84) sorted by relevance

1234

/freebsd-14-stable/lib/libbe/
HDbe_info.c182 nvlist_add_string(props, "dataset", dataset); in prop_list_builder_cb()
189 nvlist_add_string(props, "name", name); in prop_list_builder_cb()
194 nvlist_add_string(props, "mounted", mountpoint); in prop_list_builder_cb()
198 nvlist_add_string(props, "mountpoint", buf); in prop_list_builder_cb()
202 nvlist_add_string(props, "origin", buf); in prop_list_builder_cb()
206 nvlist_add_string(props, "creation", buf); in prop_list_builder_cb()
213 nvlist_add_string(props, "used", buf); in prop_list_builder_cb()
217 nvlist_add_string(props, "usedds", buf); in prop_list_builder_cb()
221 nvlist_add_string(props, "usedsnap", buf); in prop_list_builder_cb()
225 nvlist_add_string(props, "usedrefreserv", buf); in prop_list_builder_cb()
[all …]
HDbe.c710 nvlist_add_string(dccb->props, zfs_prop_to_name(prop), val); in be_deep_clone_prop()
784 nvlist_add_string(props, "canmount", "noauto"); in be_clone_cb()
1098 nvlist_add_string(props, "canmount", "noauto"); in be_import()
1099 nvlist_add_string(props, "mountpoint", "none"); in be_import()
1122 nvlist_add_string(props, "canmount", "noauto"); in be_create_child_noent()
1123 nvlist_add_string(props, "mountpoint", child_path); in be_create_child_noent()
1235 nvlist_add_string(props, "canmount", "off"); in be_add_child()
1236 nvlist_add_string(props, "mountpoint", "none"); in be_add_child()
/freebsd-14-stable/lib/libcasper/services/cap_pwd/
HDcap_pwd.c145 nvlist_add_string(nvl, "cmd", cmd); in cap_getpwcommon_r()
150 nvlist_add_string(nvl, "name", login); in cap_getpwcommon_r()
279 nvlist_add_string(nvl, "cmd", "setpassent"); in cap_setpassent()
300 nvlist_add_string(nvl, "cmd", cmd); in cap_set_end_pwent()
388 nvlist_add_string(users, nvlname, names[i]); in cap_pwd_limit_users()
556 nvlist_add_string(nvl, "pw_name", pwd->pw_name); in pwd_pack()
558 nvlist_add_string(nvl, "pw_name", ""); in pwd_pack()
580 nvlist_add_string(nvl, "pw_passwd", pwd->pw_passwd); in pwd_pack()
582 nvlist_add_string(nvl, "pw_passwd", ""); in pwd_pack()
586 nvlist_add_string(nvl, "pw_class", pwd->pw_class); in pwd_pack()
[all …]
/freebsd-14-stable/lib/libcasper/services/cap_syslog/
HDcap_syslog.c67 nvlist_add_string(nvl, "cmd", "vsyslog"); in cap_vsyslog()
69 nvlist_add_string(nvl, "message", message); in cap_vsyslog()
83 nvlist_add_string(nvl, "cmd", "openlog"); in cap_openlog()
85 nvlist_add_string(nvl, "ident", ident); in cap_openlog()
105 nvlist_add_string(nvl, "cmd", "closelog"); in cap_closelog()
120 nvlist_add_string(nvl, "cmd", "setlogmask"); in cap_setlogmask()
/freebsd-14-stable/sys/contrib/openzfs/module/zfs/
HDfm.c697 ret = nvlist_add_string(payload, name, in i_fm_payload_set()
775 if (nvlist_add_string(ereport, FM_CLASS, ereport_class) != 0) { in fm_ereport_set()
823 nvlist_add_string(fmri, FM_FMRI_SCHEME, FM_FMRI_SCHEME_HC) != 0) { in fm_fmri_hc_set_common()
860 if (nvlist_add_string(pairs[i], FM_FMRI_HC_NAME, name) != 0 || in fm_fmri_hc_set()
861 nvlist_add_string(pairs[i], FM_FMRI_HC_ID, idstr) != 0) { in fm_fmri_hc_set()
922 if (nvlist_add_string(pairs[i], FM_FMRI_HC_NAME, hcname) != 0 || in fm_fmri_hc_create()
923 nvlist_add_string(pairs[i], FM_FMRI_HC_ID, hcid) != 0) { in fm_fmri_hc_create()
947 if (nvlist_add_string(pairs[i], FM_FMRI_HC_NAME, name) != 0 || in fm_fmri_hc_create()
948 nvlist_add_string(pairs[i], FM_FMRI_HC_ID, idstr) != 0) { in fm_fmri_hc_create()
1009 err |= nvlist_add_string(fmri_dev, FM_FMRI_SCHEME, FM_FMRI_SCHEME_DEV); in fm_fmri_dev_set()
[all …]
/freebsd-14-stable/lib/libcasper/services/cap_grp/
HDcap_grp.c185 nvlist_add_string(nvl, "cmd", cmd); in cap_getgrcommon_r()
190 nvlist_add_string(nvl, "name", name); in cap_getgrcommon_r()
319 nvlist_add_string(nvl, "cmd", "setgroupent"); in cap_setgroupent()
340 nvlist_add_string(nvl, "cmd", "setgrent"); in cap_setgrent()
360 nvlist_add_string(nvl, "cmd", "endgrent"); in cap_endgrent()
434 nvlist_add_string(groups, nvlname, names[i]); in cap_grp_limit_groups()
600 nvlist_add_string(nvl, "gr_name", grp->gr_name); in grp_pack()
602 nvlist_add_string(nvl, "gr_name", ""); in grp_pack()
604 nvlist_add_string(nvl, "gr_passwd", grp->gr_passwd); in grp_pack()
606 nvlist_add_string(nvl, "gr_passwd", ""); in grp_pack()
[all …]
/freebsd-14-stable/lib/libcasper/services/cap_dns/
HDcap_dns.c136 nvlist_add_string(nvl, "cmd", "gethostbyname"); in cap_gethostbyname2()
138 nvlist_add_string(nvl, "name", name); in cap_gethostbyname2()
163 nvlist_add_string(nvl, "cmd", "gethostbyaddr"); in cap_gethostbyaddr()
227 nvlist_add_string(nvl, "cmd", "getaddrinfo"); in cap_getaddrinfo()
229 nvlist_add_string(nvl, "hostname", hostname); in cap_getaddrinfo()
231 nvlist_add_string(nvl, "servname", servname); in cap_getaddrinfo()
287 nvlist_add_string(nvl, "cmd", "getnameinfo"); in cap_getnameinfo()
345 nvlist_add_string(limits, nvlname, types[i]); in cap_dns_type_limit()
439 nvlist_add_string(nvl, "name", hp->h_name); in hostent_pack()
449 nvlist_add_string(nvl, nvlname, hp->h_aliases[ii]); in hostent_pack()
[all …]
/freebsd-14-stable/lib/libcasper/services/cap_netdb/
HDcap_netdb.c85 nvlist_add_string(nvl, "cmd", "getprotobyname"); in cap_getprotobyname()
86 nvlist_add_string(nvl, "name", name); in cap_getprotobyname()
102 nvlist_add_string(nvl, "name", pp->p_name); in protoent_pack()
/freebsd-14-stable/lib/libcasper/libcasper/
HDlibcasper.c181 nvlist_add_string(nvl, "cmd", "clone"); in cap_clone()
235 nvlist_add_string(nvlmsg, "cmd", "limit_set"); in cap_limit_set()
259 nvlist_add_string(nvlmsg, "cmd", "limit_get"); in cap_limit_get()
320 nvlist_add_string(nvl, "cmd", "open"); in cap_service_open()
321 nvlist_add_string(nvl, "service", name); in cap_service_open()
/freebsd-14-stable/lib/libpfctl/
HDlibpfctl.c360 nvlist_add_string(nvl, "ifname", addr->v.ifname); in pfctl_nv_add_addr_wrap()
362 nvlist_add_string(nvl, "tblname", addr->v.tblname); in pfctl_nv_add_addr_wrap()
742 nvlist_add_string(nvl, "path", path); in pfctl_get_eth_rulesets_info()
764 nvlist_add_string(nvl, "path", path); in pfctl_get_eth_ruleset()
790 nvlist_add_string(nvl, "anchor", path); in pfctl_get_eth_rules_info()
813 nvlist_add_string(nvl, "anchor", path); in pfctl_get_eth_rule()
845 nvlist_add_string(nvl, "anchor", anchor); in pfctl_add_eth_rule()
846 nvlist_add_string(nvl, "anchor_call", anchor_call); in pfctl_add_eth_rule()
850 nvlist_add_string(nvl, "ifname", r->ifname); in pfctl_add_eth_rule()
854 nvlist_add_string(nvl, "match_tagname", r->match_tagname); in pfctl_add_eth_rule()
[all …]
/freebsd-14-stable/sys/netpfil/pf/
HDpf_nv.c336 nvlist_add_string(nvl, "ifname", addr->v.ifname); in pf_addr_wrap_to_nvaddr_wrap()
344 nvlist_add_string(nvl, "tblname", addr->v.tblname); in pf_addr_wrap_to_nvaddr_wrap()
712 nvlist_add_string(nvl, "label", rule->label[0]); in pf_krule_to_nvrule()
714 nvlist_add_string(nvl, "ifname", rule->ifname); in pf_krule_to_nvrule()
715 nvlist_add_string(nvl, "qname", rule->qname); in pf_krule_to_nvrule()
716 nvlist_add_string(nvl, "pqname", rule->pqname); in pf_krule_to_nvrule()
720 nvlist_add_string(nvl, "tagname", rule->tagname); in pf_krule_to_nvrule()
721 nvlist_add_string(nvl, "match_tagname", rule->match_tagname); in pf_krule_to_nvrule()
722 nvlist_add_string(nvl, "overload_tblname", rule->overload_tblname); in pf_krule_to_nvrule()
936 nvlist_add_string(nvl, "ifname", s->kif->pfik_name); in pf_state_to_nvstate()
[all …]
/freebsd-14-stable/lib/libcasper/services/cap_sysctl/
HDcap_sysctl.c96 nvlist_add_string(lnv, "name", name); in cap_sysctl_limit_name()
201 nvlist_add_string(req, "cmd", "sysctl"); in cap_sysctl()
213 nvlist_add_string(req, "cmd", "sysctlbyname"); in cap_sysctlbyname()
214 nvlist_add_string(req, "name", name); in cap_sysctlbyname()
228 nvlist_add_string(req, "cmd", "sysctlnametomib"); in cap_sysctlnametomib()
229 nvlist_add_string(req, "name", name); in cap_sysctlnametomib()
/freebsd-14-stable/sys/contrib/openzfs/cmd/zed/
HDzed_disk_event.c117 (void) nvlist_add_string(nvl, DEV_IDENTIFIER, strval); in dev_event_nvlist()
119 (void) nvlist_add_string(nvl, DEV_PHYS_PATH, strval); in dev_event_nvlist()
121 (void) nvlist_add_string(nvl, DEV_NAME, path); in dev_event_nvlist()
123 (void) nvlist_add_string(nvl, DEV_PATH, value); in dev_event_nvlist()
/freebsd-14-stable/lib/libcasper/services/cap_net/
HDcap_net.c151 nvlist_add_string(nvl, "cmd", name); in request_cb()
203 nvlist_add_string(nvl, "cmd", "gethostbyname"); in cap_gethostbyname2()
205 nvlist_add_string(nvl, "name", name); in cap_gethostbyname2()
230 nvlist_add_string(nvl, "cmd", "gethostbyaddr"); in cap_gethostbyaddr()
294 nvlist_add_string(nvl, "cmd", "getaddrinfo"); in cap_getaddrinfo()
296 nvlist_add_string(nvl, "hostname", hostname); in cap_getaddrinfo()
298 nvlist_add_string(nvl, "servname", servname); in cap_getaddrinfo()
356 nvlist_add_string(nvl, "cmd", "getnameinfo"); in cap_getnameinfo()
504 nvlist_add_string(nvl, in cap_net_limit_name2addr()
752 nvlist_add_string(nvl, "name", hp->h_name); in hostent_pack()
[all …]
/freebsd-14-stable/lib/libcasper/services/cap_fileargs/
HDcap_fileargs.c148 nvlist_add_string(nvl, "cmd", cmd); in fileargs_fetch()
149 nvlist_add_string(nvl, "name", name); in fileargs_fetch()
661 nvlist_add_string(nvlout, "cmd", "cache"); in fileargs_command_lstat()
664 nvlist_add_string(nvlout, "cmd", "lstat"); in fileargs_command_lstat()
713 nvlist_add_string(nvlout, "cmd", "cache"); in fileargs_command_open()
716 nvlist_add_string(nvlout, "cmd", "open"); in fileargs_command_open()
/freebsd-14-stable/sys/contrib/openzfs/cmd/zed/agents/
HDzfs_agents.c219 (void) nvlist_add_string(payload, FM_CLASS, class); in zfs_agent_post_event()
272 (void) nvlist_add_string(payload, in zfs_agent_post_event()
277 (void) nvlist_add_string(payload, in zfs_agent_post_event()
281 (void) nvlist_add_string(payload, in zfs_agent_post_event()
HDzfs_mod.c546 if (nvlist_add_string(newvd, ZPOOL_CONFIG_TYPE, VDEV_TYPE_DISK) != 0 || in zfs_process_add()
547 nvlist_add_string(newvd, ZPOOL_CONFIG_PATH, path) != 0 || in zfs_process_add()
548 nvlist_add_string(newvd, ZPOOL_CONFIG_DEVID, new_devid) != 0 || in zfs_process_add()
549 (physpath != NULL && nvlist_add_string(newvd, in zfs_process_add()
551 (enc_sysfs_path != NULL && nvlist_add_string(newvd, in zfs_process_add()
554 nvlist_add_string(nvroot, ZPOOL_CONFIG_TYPE, VDEV_TYPE_ROOT) != 0 || in zfs_process_add()
688 (void) nvlist_add_string(nvl, "new_devid", in zfs_iter_vdev()
/freebsd-14-stable/lib/libnv/tests/
HDnvlist_add_test.c101 nvlist_add_string(nvl, "nvlist/string/", ""); in main()
106 nvlist_add_string(nvl, "nvlist/string/x", "x"); in main()
111 nvlist_add_string(nvl, "nvlist/string/abcdefghijklmnopqrstuvwxyz", "abcdefghijklmnopqrstuvwxyz"); in main()
HDnvlist_get_test.c100 nvlist_add_string(nvl, "nvlist/string/", ""); in main()
105 nvlist_add_string(nvl, "nvlist/string/x", "x"); in main()
110 nvlist_add_string(nvl, "nvlist/string/abcdefghijklmnopqrstuvwxyz", "abcdefghijklmnopqrstuvwxyz"); in main()
HDnvlist_append_test.c82 nvlist_add_string(nvl1, "key1", "test1"); in main()
87 nvlist_add_string(nvl2, "key2", "test2"); in main()
HDnv_tests.cc172 nvlist_add_string(nvl, key, value); in ATF_TEST_CASE_BODY()
362 nvlist_add_string(sublist, test_string_key, test_string_val); in create_test_nvlist()
555 nvlist_add_string(nvl, strkey, strvalue); in ATF_TEST_CASE_BODY()
846 nvlist_add_string(nvl, otherkey2, otherval2); in ATF_TEST_CASE_BODY()
871 nvlist_add_string(nvl, testkey, testval); in ATF_TEST_CASE_BODY()
892 nvlist_add_string(nvl, otherkey1, otherval1); in ATF_TEST_CASE_BODY()
900 nvlist_add_string(nvl, testkey, testval); in ATF_TEST_CASE_BODY()
1087 nvlist_add_string(nvl, key, "gjkfkjd"); in ATF_TEST_CASE_BODY()
1183 nvlist_add_string(nvl, key, "gjkfkjd"); in ATF_TEST_CASE_BODY()
/freebsd-14-stable/usr.sbin/rtsold/
HDcap_llflags.c125 nvlist_add_string(nvl, "cmd", "get"); in cap_llflags_get()
126 nvlist_add_string(nvl, "ifname", ifname); in cap_llflags_get()
HDcap_script.c96 nvlist_add_string(nvl, "cmd", "script_run"); in cap_script_run()
136 nvlist_add_string(nvl, "cmd", "script_wait"); in cap_script_wait()
/freebsd-14-stable/sys/contrib/openzfs/cmd/zpool/
HDzpool_vdev.c372 verify(nvlist_add_string(vdev, ZPOOL_CONFIG_PATH, path) == 0); in make_leaf_vdev()
373 verify(nvlist_add_string(vdev, ZPOOL_CONFIG_TYPE, type) == 0); in make_leaf_vdev()
1107 verify(nvlist_add_string(nv, ZPOOL_CONFIG_PATH, udevpath) == 0); in make_disks()
1651 verify(nvlist_add_string(nv, ZPOOL_CONFIG_TYPE, in construct_spec()
1656 verify(nvlist_add_string(nv, in construct_spec()
1661 verify(nvlist_add_string(nv, in construct_spec()
1666 verify(nvlist_add_string(nv, in construct_spec()
1704 verify(nvlist_add_string(nv, in construct_spec()
1711 verify(nvlist_add_string(nv, in construct_spec()
1716 verify(nvlist_add_string(nv, in construct_spec()
[all …]
/freebsd-14-stable/sys/dev/sound/pcm/
HDsndstat.c405 nvlist_add_string( in sndstat_build_sound4_nvlist()
440 nvlist_add_string(sound4di, SNDST_DSPS_SOUND4_STATUS, d->status); in sndstat_build_sound4_nvlist()
473 nvlist_add_string(cdi, SNDST_DSPS_SOUND4_CHAN_NAME, c->name); in sndstat_build_sound4_nvlist()
474 nvlist_add_string(cdi, SNDST_DSPS_SOUND4_CHAN_PARENTCHAN, in sndstat_build_sound4_nvlist()
484 nvlist_add_string(cdi, SNDST_DSPS_SOUND4_CHAN_COMM, c->comm); in sndstat_build_sound4_nvlist()
571 nvlist_add_string(cdi, SNDST_DSPS_SOUND4_CHAN_FEEDERCHAIN, in sndstat_build_sound4_nvlist()
588 nvlist_add_string(di, SNDST_DSPS_PROVIDER, SNDST_DSPS_SOUND4_PROVIDER); in sndstat_build_sound4_nvlist()
619 nvlist_add_string(di, SNDST_DSPS_NAMEUNIT, ud->nameunit); in sndstat_build_userland_nvlist()
620 nvlist_add_string( in sndstat_build_userland_nvlist()
622 nvlist_add_string(di, SNDST_DSPS_DESC, ud->desc); in sndstat_build_userland_nvlist()
[all …]

1234