nvlist_remove, nvlist_remove_all - remove name-value pairs
cc [ flag... ] file... -lnvpair [ library... ] #include <libnvpair.h> int nvlist_remove(nvlist_t *nvl, const char *name, data_type_t type);
int nvlist_remove_all(nvlist_t *nvl, const char *name);
nvl
name
type
The nvlist_remove() function removes the first occurrence of nvpair that matches the name and the type.
The nvlist_remove_all() function removes all occurrences of nvpair that match the name, regardless of type.
Multiple threads can simultaneously read the same nvlist_t but only one thread can actively change a given nvlist_t at a time. The caller is responsible for the synchronization.
These functions return 0 on success and an error value on failure.
These functions will fail if:
EINVAL
ENOENT
See attributes(5) for descriptions of the following attributes:
|
libnvpair(3LIB), attributes(5)
Закладки на сайте Проследить за страницей |
Created 1996-2024 by Maxim Chirkov Добавить, Поддержать, Вебмастеру |