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

Function nvlist_add_null

freebsd/contrib/libnv/nvlist.c:1518–1535  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1516}
1517
1518void
1519nvlist_add_null(nvlist_t *nvl, const char *name)
1520{
1521 nvpair_t *nvp;
1522
1523 if (nvlist_error(nvl) != 0) {
1524 ERRNO_SET(nvlist_error(nvl));
1525 return;
1526 }
1527
1528 nvp = nvpair_create_null(name);
1529 if (nvp == NULL) {
1530 nvl->nvl_error = ERRNO_OR_DEFAULT(ENOMEM);
1531 ERRNO_SET(nvl->nvl_error);
1532 } else {
1533 (void)nvlist_move_nvpair(nvl, nvp);
1534 }
1535}
1536
1537void
1538nvlist_add_binary(nvlist_t *nvl, const char *name, const void *value,

Callers

nothing calls this directly

Calls 2

nvlist_errorFunction · 0.85
nvpair_create_nullFunction · 0.85

Tested by

no test coverage detected