xref: /illumos-gate/usr/src/man/man9f/ldi_ev_get_type.9f (revision b7daf79982d77b491ef9662483cd4549e0e5da9a)
te
Copyright (c) 2007, Sun Microsystems, Inc., All Rights Reserved
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. 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 the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
LDI_EV_GET_TYPE 9F "Aug 21, 2007"
NAME
ldi_ev_get_type - get event name string from event cookie
SYNOPSIS

#include <sys/sunldi.h>

int ldi_ev_get_type(ldi_ev_cookie_t cookie);
INTERFACE LEVEL

Solaris DDI specific (Solaris DDI)

PARAMETERS
ldi_ev_cookie_t cookie

An opaque event cookie for the event type returned by a previous call to ldi_ev_get_cookie(9F).

DESCRIPTION

The ldi_ev_get_type() function returns the event string represented by the LDI event cookie "cookie".

RETURN VALUES

On success, this function returns the event string represented by "cookie". On failure, this function returns NULL.

CONTEXT

This function can be called from user and kernel contexts only.

SEE ALSO

ldi_ev_get_cookie(9F), ldi_ev_register_callbacks(9F), ldi_ev_remove_callbacks(9F)