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

Function nvlist_remove

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

* Remove first one with matching name and type */

Source from the content-addressed store, hash-verified

962 * Remove first one with matching name and type
963 */
964int
965nvlist_remove(nvlist_t *nvl, const char *name, data_type_t type)
966{
967 if (nvl == NULL || name == NULL || nvl->nvl_priv == 0)
968 return (EINVAL);
969
970 nvpair_t *nvp = nvt_lookup_name_type(nvl, name, type);
971 if (nvp == NULL)
972 return (ENOENT);
973
974 return (nvlist_remove_nvpair(nvl, nvp));
975}
976
977int
978nvlist_remove_nvpair(nvlist_t *nvl, nvpair_t *nvp)

Callers 14

nvlist_add_commonFunction · 0.85
spa_generate_rootconfFunction · 0.85
zpl_xattr_set_saFunction · 0.85
spa_prop_validateFunction · 0.85
spa_load_sparesFunction · 0.85
spa_load_l2cacheFunction · 0.85
spa_set_aux_vdevsFunction · 0.85
spa_importFunction · 0.85
spa_vdev_remove_auxFunction · 0.85
get_configsFunction · 0.85
zfs_valid_proplistFunction · 0.85
zfs_prune_proplistFunction · 0.85

Calls 2

nvt_lookup_name_typeFunction · 0.85
nvlist_remove_nvpairFunction · 0.85

Tested by

no test coverage detected