Xenomai  3.2.4
Interrupt management

Functions

void xnintr_destroy (struct xnintr *intr)
 Destroy an interrupt descriptor. More...
 
void xnintr_detach (struct xnintr *intr)
 Detach an interrupt descriptor. More...
 
void xnintr_enable (struct xnintr *intr)
 Enable an interrupt line. More...
 
void xnintr_disable (struct xnintr *intr)
 Disable an interrupt line. More...
 

Detailed Description

Function Documentation

◆ xnintr_destroy()

void xnintr_destroy ( struct xnintr *  intr)

Destroy an interrupt descriptor.

Destroys an interrupt descriptor previously initialized by xnintr_init(). The descriptor is automatically detached by a call to xnintr_detach(). No more IRQs will be received through this descriptor after this service has returned.

Parameters
intrThe address of the interrupt descriptor to destroy.
Tags
secondary-only

References xnintr_detach().

◆ xnintr_detach()

void xnintr_detach ( struct xnintr *  intr)

Detach an interrupt descriptor.

This call unregisters an interrupt descriptor previously attached by xnintr_attach() from the interrupt pipeline. Once detached, the associated interrupt line is disabled, but the descriptor remains valid. The descriptor can be attached anew by a call to xnintr_attach().

Parameters
intrThe address of the interrupt descriptor to detach.
Note
The caller must not hold nklock when invoking this service, this would cause deadlocks.
Tags
secondary-only

Referenced by xnintr_destroy().

◆ xnintr_disable()

void xnintr_disable ( struct xnintr *  intr)

Disable an interrupt line.

Disables the interrupt line associated with an interrupt descriptor.

Parameters
intrThe address of the interrupt descriptor.
Tags
secondary-only

◆ xnintr_enable()

void xnintr_enable ( struct xnintr *  intr)

Enable an interrupt line.

Enables the interrupt line associated with an interrupt descriptor.

Parameters
intrThe address of the interrupt descriptor.
Tags
secondary-only