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

Function nvlist_take_binary

freebsd/contrib/libnv/nvlist.c:1973–1987  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1971#undef NVLIST_TAKE
1972
1973void *
1974nvlist_take_binary(nvlist_t *nvl, const char *name, size_t *sizep)
1975{
1976 nvpair_t *nvp;
1977 void *value;
1978
1979 nvp = nvlist_find(nvl, NV_TYPE_BINARY, name);
1980 if (nvp == NULL)
1981 nvlist_report_missing(NV_TYPE_BINARY, name);
1982
1983 value = (void *)(intptr_t)nvpair_get_binary(nvp, sizep);
1984 nvlist_remove_nvpair(nvl, nvp);
1985 nvpair_free_structure(nvp);
1986 return (value);
1987}
1988
1989#define NVLIST_TAKE_ARRAY(ftype, type, TYPE) \
1990ftype \

Callers 1

dnvlist_take_binaryFunction · 0.85

Calls 5

nvlist_findFunction · 0.85
nvlist_report_missingFunction · 0.85
nvpair_get_binaryFunction · 0.85
nvlist_remove_nvpairFunction · 0.85
nvpair_free_structureFunction · 0.85

Tested by

no test coverage detected