Home | History | Annotate | Download | only in dist

Lines Matching defs:nref

74 nvlist_copyin(const nvlist_ref_t *nref, nvlist_t **nvlp, size_t lim)
76 const size_t len = nref->len;
88 error = copyin(nref->buf, buf, len);
93 flags = nref->flags & (NV_FLAG_IGNORE_CASE | NV_FLAG_NO_UNIQUE);
104 nvlist_copyout(nvlist_ref_t *nref, const nvlist_t *nvl)
133 nref->flags = nvlist_flags(nvl);
134 nref->buf = uaddr;
135 nref->len = len;
147 nvlist_ref_t nref;
150 memset(&nref, 0, sizeof(nvlist_ref_t));
156 buf = nvlist_pack(nvl, &nref.len);
161 nref.buf = buf;
162 nref.flags = nvlist_flags(nvl);
168 if (ioctl(fd, cmd, &nref) == -1) {
182 if (nref.buf == NULL || nref.len == 0) {
186 retnvl = nvlist_unpack(nref.buf, nref.len, nref.flags);
187 munmap(nref.buf, nref.len);