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

Function nvlist_remove_nvpair

freebsd/contrib/openzfs/module/nvpair/nvpair.c:977–991  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

975}
976
977int
978nvlist_remove_nvpair(nvlist_t *nvl, nvpair_t *nvp)
979{
980 if (nvl == NULL || nvp == NULL)
981 return (EINVAL);
982
983 int err = nvt_remove_nvpair(nvl, nvp);
984 if (err != 0)
985 return (err);
986
987 nvp_buf_unlink(nvl, nvp);
988 nvpair_free(nvp);
989 nvp_buf_free(nvl, nvp);
990 return (0);
991}
992
993/*
994 * This function calculates the size of an nvpair value.

Callers 11

nvlist_remove_allFunction · 0.85
nvlist_removeFunction · 0.85
fnvlist_remove_nvpairFunction · 0.85
zfs_check_clearableFunction · 0.85
props_reduceFunction · 0.85
extract_delay_propsFunction · 0.85
nvlist_destroyFunction · 0.85
nvlist_take_binaryFunction · 0.85
NVLIST_TAKE_ARRAYFunction · 0.85
nvlist_free_nvpairFunction · 0.85
cnvlist_take_binaryFunction · 0.85

Calls 4

nvt_remove_nvpairFunction · 0.85
nvp_buf_unlinkFunction · 0.85
nvp_buf_freeFunction · 0.85
nvpair_freeFunction · 0.70

Tested by

no test coverage detected