'\" te .\" Copyright (c) 2009, Sun Microsystems, Inc. All Rights Reserved. .TH sysevent_get_attr_list 3SYSEVENT "24 Jul 2009" "SunOS 5.11" "System Event Library Functions" .SH NAME sysevent_get_attr_list \- get attribute list pointer .SH SYNOPSIS .LP .nf \fBcc\fR [\fIflag \&.\|.\|.\fR] \fIfile\fR\&.\|.\|. \fB-lsysevent\fR \fB -lnvpair \fR [\fIlibrary \&.\|.\|.\fR] #include #include \fBint\fR \fBsysevent_get_attr_list\fR(\fBsysevent_t *\fR\fIev\fR, \fBnvlist_t **\fR\fIattr_list\fR); .fi .SH PARAMETERS .sp .ne 2 .mk .na \fB\fIev\fR\fR .ad .RS 13n .rt handle to a system event .RE .sp .ne 2 .mk .na \fB\fIattr_list\fR\fR .ad .RS 13n .rt address of a pointer to attribute list (\fBnvlist_t\fR) .RE .SH DESCRIPTION .sp .LP The \fBsysevent_get_attr_list()\fR function updates \fIattr_list\fR to point to a searchable name-value pair list associated with the \fBsysevent\fR event, \fIev\fR. The interface manages the allocation of the attribute list, but it is up to the caller to free the list when it is no longer needed with a call to \fBnvlist_free()\fR. See \fBnvlist_alloc\fR(3NVPAIR). .SH RETURN VALUES .sp .LP The \fBsysevent_get_attr_list()\fR function returns \fB0\fR if the attribute list for \fIev\fR is found to be valid. Otherwise it returns \fB\(mi1\fR and sets \fBerrno\fR to indicate the error. .SH ERRORS .sp .LP The \fBsysevent_get_attr_list()\fR function will fail if: .sp .ne 2 .mk .na \fB\fBENOMEM\fR\fR .ad .RS 10n .rt Insufficient memory available to allocate an \fBnvlist\fR. .RE .sp .ne 2 .mk .na \fB\fBEINVAL\fR\fR .ad .RS 10n .rt Invalid \fBsysevent\fR event attribute list. .RE .SH ATTRIBUTES .sp .LP See \fBattributes\fR(5) for descriptions of the following attributes: .sp .sp .TS tab() box; cw(2.75i) |cw(2.75i) lw(2.75i) |lw(2.75i) . ATTRIBUTE TYPEATTRIBUTE VALUE _ Interface StabilityCommitted _ MT-LevelMT-Safe .TE .SH SEE ALSO .sp .LP \fBsyseventd\fR(1M), \fBnvlist_alloc\fR(3NVPAIR), \fBnvlist_lookup_boolean\fR(3NVPAIR), \fBattributes\fR(5) .SH NOTES .sp .LP The \fBlibsysevent\fR interfaces do not work at all in non-global zones.