MCPcopy Create free account
hub / github.com/F-Stack/f-stack / cnvlist_take_binary

Function cnvlist_take_binary

freebsd/contrib/libnv/cnvlist.c:181–194  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

179#undef CNVLIST_TAKE_ARRAY
180
181void *
182cnvlist_take_binary(void *cookie, size_t *sizep)
183{
184 void *value;
185 nvlist_t *nvl;
186
187 if (nvpair_type(cookie) != NV_TYPE_BINARY)
188 nvlist_report_missing(NV_TYPE_BINARY, nvpair_name(cookie));
189 nvl = nvpair_nvlist(cookie);
190 value = (void *)(intptr_t)nvpair_get_binary(cookie, sizep);
191 nvlist_remove_nvpair(nvl, cookie);
192 nvpair_free_structure(cookie);
193 return (value);
194}
195
196
197#define CNVLIST_FREE(type) \

Callers

nothing calls this directly

Calls 7

nvlist_report_missingFunction · 0.85
nvpair_nvlistFunction · 0.85
nvpair_get_binaryFunction · 0.85
nvlist_remove_nvpairFunction · 0.85
nvpair_free_structureFunction · 0.85
nvpair_typeFunction · 0.70
nvpair_nameFunction · 0.70

Tested by

no test coverage detected