Query: nvlist_remove
OS: opensolaris
Section: 3nvpair
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
nvlist_remove(3NVPAIR) Name-value Pair Library Functions nvlist_remove(3NVPAIR)NAMEnvlist_remove, nvlist_remove_all - remove name-value pairsSYNOPSIScc [ 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);PARAMETERSnvl The nvlist_t to be processed. name Name of the name-value pair to be removed. type Data type of the nvpair to be removed.DESCRIPTIONThe 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.RETURN VALUESThese functions return 0 on success and an error value on failure.ERRORSThese functions will fail if: EINVAL There is an invalid argument. ENOENT No name-value pairs were found to match the criteria specified by name and type.ATTRIBUTESSee attributes(5) for descriptions of the following attributes: +----------------------------+------------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +----------------------------+------------------------------+ |Interface Stability | Evolving | +----------------------------+------------------------------+ |MT-Level | MT-Safe | +----------------------------+------------------------------+SEE ALSOlibnvpair(3LIB), attributes(5) SunOS 5.11 2 Feb 2004 nvlist_remove(3NVPAIR)
Related Man Pages |
---|
nvlist_next_nvpair(3nvpair) - sunos |
nvlist_remove(3nvpair) - sunos |
nvlist_exists(3nvpair) - opensolaris |
nvlist_next_nvpair(3nvpair) - opensolaris |
nvlist_remove(9f) - opensolaris |
Similar Topics in the Unix Linux Community |
---|
Change directory for core file |
Grep the 'not running' jobs and will send the update in mail with its name(job) |
What's legal and what's not? |
Identify problem with while getopts |
What is good? |