2 .\" Copyright (c) 2009, 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. You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing.
4 .\" See the License for the specific language governing permissions and limitations under the License. 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
5 .\" the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
6 .TH SYSEVENT_GET_ATTR_LIST 3SYSEVENT "Jul 24, 2009"
8 sysevent_get_attr_list \- get attribute list pointer
12 \fBcc\fR [\fIflag \&.\|.\|.\fR] \fIfile\fR\&.\|.\|. \fB-lsysevent\fR \fB -lnvpair \fR [\fIlibrary \&.\|.\|.\fR]
13 #include <libsysevent.h>
14 #include <libnvpair.h>
16 \fBint\fR \fBsysevent_get_attr_list\fR(\fBsysevent_t *\fR\fIev\fR, \fBnvlist_t **\fR\fIattr_list\fR);
26 handle to a system event
35 address of a pointer to attribute list (\fBnvlist_t\fR)
41 The \fBsysevent_get_attr_list()\fR function updates \fIattr_list\fR to point to
42 a searchable name-value pair list associated with the \fBsysevent\fR event,
43 \fIev\fR. The interface manages the allocation of the attribute list, but it
44 is up to the caller to free the list when it is no longer needed with a call to
45 \fBnvlist_free()\fR. See \fBnvlist_alloc\fR(3NVPAIR).
49 The \fBsysevent_get_attr_list()\fR function returns \fB0\fR if the attribute
50 list for \fIev\fR is found to be valid. Otherwise it returns \fB\(mi1\fR and
51 sets \fBerrno\fR to indicate the error.
55 The \fBsysevent_get_attr_list()\fR function will fail if:
62 Insufficient memory available to allocate an \fBnvlist\fR.
71 Invalid \fBsysevent\fR event attribute list.
77 See \fBattributes\fR(5) for descriptions of the following attributes:
85 ATTRIBUTE TYPE ATTRIBUTE VALUE
87 Interface Stability Committed
95 \fBsyseventd\fR(8), \fBnvlist_alloc\fR(3NVPAIR),
96 \fBnvlist_lookup_boolean\fR(3NVPAIR), \fBattributes\fR(5)
100 The \fBlibsysevent\fR interfaces do not work at all in non-global zones.