Lines Matching refs:nvl
46 protoent_unpack(nvlist_t *nvl) in protoent_unpack() argument
54 nvlist_destroy(nvl); in protoent_unpack()
58 pp->p_name = nvlist_take_string(nvl, "name"); in protoent_unpack()
60 aliases = nvlist_take_string_array(nvl, "aliases", &n); in protoent_unpack()
68 nvlist_destroy(nvl); in protoent_unpack()
73 pp->p_proto = (int)nvlist_take_number(nvl, "proto"); in protoent_unpack()
75 nvlist_destroy(nvl); in protoent_unpack()
82 nvlist_t *nvl; in cap_getprotobyname() local
84 nvl = nvlist_create(0); in cap_getprotobyname()
85 nvlist_add_string(nvl, "cmd", "getprotobyname"); in cap_getprotobyname()
86 nvlist_add_string(nvl, "name", name); in cap_getprotobyname()
87 nvl = cap_xfer_nvlist(chan, nvl); in cap_getprotobyname()
88 if (nvl == NULL) in cap_getprotobyname()
90 if (dnvlist_get_number(nvl, "error", 0) != 0) { in cap_getprotobyname()
91 nvlist_destroy(nvl); in cap_getprotobyname()
94 return (protoent_unpack(nvl)); in cap_getprotobyname()
98 protoent_pack(const struct protoent *pp, nvlist_t *nvl) in protoent_pack() argument
102 nvlist_add_string(nvl, "name", pp->p_name); in protoent_pack()
106 nvlist_add_string_array(nvl, "aliases", in protoent_pack()
109 nvlist_add_number(nvl, "proto", (uint64_t)pp->p_proto); in protoent_pack()