FreeBSD/sys/x86/xen/xen_intr.c
/**
 * Lookup a Xen interrupt source object given an interrupt binding handle.
 * 
 * \param handle  A handle initialized by a previous call to
 *                xen_intr_bind_isrc().
 *
 * \returns  A pointer to the Xen interrupt source object associated
 *           with the given interrupt handle.  NULL if no association
 *           currently exists.
 */
Lookup a Xen interrupt source object given an interrupt binding handle.

\param handle  A handle initialized by a previous call to
xen_intr_bind_isrc().

\returns  A pointer to the Xen interrupt source object associated
with the given interrupt handle.  NULL if no association
currently exists.
Lookup a Xen interrupt source object given an interrupt binding handle . \ param handle A handle initialized by a previous call to xen_intr_bind_isrc () . \ returns A pointer to the Xen interrupt source object associated with the given interrupt handle . NULL if no association currently exists .
static struct xenisrc *
xen_intr_isrc(xen_intr_handle_t handle)
{
	int vector;
	if (handle == NULL)
		return (NULL);
	vector = *(int *)handle;
	KASSERT(vector >= FIRST_EVTCHN_INT &&
	    vector < (FIRST_EVTCHN_INT + xen_intr_auto_vector_count),
	    ("Xen interrupt vector is out of range"));
	return ((struct xenisrc *)intr_lookup_source(vector));
}
static struct xenisrc * xen_intr_isrc ( xen_intr_handle_t handle ) { int vector ; if ( handle == NULL ) return ( NULL ) ; vector = * ( int * ) handle ; KASSERT ( vector >= FIRST_EVTCHN_INT && vector < ( FIRST_EVTCHN_INT + xen_intr_auto_vector_count ) , ( " " ) ) ; return ( ( struct xenisrc * ) intr_lookup_source ( vector ) ) ; }
Lookup a Xen interrupt source object given an interrupt binding handle.
Lookup a Xen interrupt source object given an interrupt binding handle .