2 .\" Copyright (c) 2006, Sun Microsystems, Inc. All Rights Reserved.
3 .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License.
4 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License.
5 .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
6 .TH NVLIST_REMOVE 9F "Jan 16, 2006"
8 nvlist_remove, nvlist_remove_all \- remove name-value pairs
12 #include <sys/nvpair.h>
14 \fBint\fR \fBnvlist_remove\fR(\fBnvlist_t *\fR\fInvl\fR, \fBconst char *\fR\fIname\fR, \fBdata_type_t\fR \fItype\fR);
19 \fBint\fR \fBnvlist_remove_all\fR(\fBnvlist_t *\fR\fInvl\fR, \fBconst char *\fR\fIname\fR);
25 Solaris DDI specific (Solaris DDI)
33 The list of name-value pairs (\fBnvlist_t\fR) to be processed.
42 Name of the name-value pair (\fBnvpair\fR) to be removed.
51 Data type of the \fBnvpair\fR to be removed.
57 The \fBnvlist_remove()\fR function removes the first occurrence of \fInvpair\fR
58 that matches the name and the type.
61 The \fBnvlist_remove_all()\fR function removes all occurrences of \fInvpair\fR
62 that match the name, regardless of type.
65 Multiple threads can simultaneously read the same \fBnvlist_t\fR but only one
66 thread may actively change a given \fBnvlist_t\fR at a time. The caller is
67 responsible for the synchronization.
71 These functions return \fB0\fR on success and an error value on failure.
75 The \fBnvlist_remove()\fR and \fBnvlist_remove_all()\fR functions can be called
76 from user, interrupt, or kernel context.
84 There is an invalid argument.
93 No name-value pairs were found to match the criteria specified by name and