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

Function nvlist_move_bool_array

freebsd/contrib/libnv/nvlist.c:1758–1777  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1756}
1757
1758void
1759nvlist_move_bool_array(nvlist_t *nvl, const char *name, bool *value,
1760 size_t nitems)
1761{
1762 nvpair_t *nvp;
1763
1764 if (nvlist_error(nvl) != 0) {
1765 nv_free(value);
1766 ERRNO_SET(nvlist_error(nvl));
1767 return;
1768 }
1769
1770 nvp = nvpair_move_bool_array(name, value, nitems);
1771 if (nvp == NULL) {
1772 nvl->nvl_error = ERRNO_OR_DEFAULT(ENOMEM);
1773 ERRNO_SET(nvl->nvl_error);
1774 } else {
1775 (void)nvlist_move_nvpair(nvl, nvp);
1776 }
1777}
1778
1779void
1780nvlist_move_string_array(nvlist_t *nvl, const char *name, char **value,

Callers

nothing calls this directly

Calls 2

nvlist_errorFunction · 0.85
nvpair_move_bool_arrayFunction · 0.85

Tested by

no test coverage detected