dim_alloc_intr()

Allocate interrupts

Synopsis:

#include <dim.h>

errno_t dim_alloc_intr( const uint32_t devid,
                        dim_intr_cfg_t *intr_cfg );

Arguments:

devid
A unique device identification number.
intr_cfg
A pointer to the interrupt configuration structure, dim_intr_cfg_t. You must provide the nirq and a pre-allocated irq_list buffer.
The call returns nirq IRQs in the irq_list and respective affinities in the affinity_list if you set the DIM_IRQ_AFFINITY_RX flag. The remaining fields of the dim_intr_cfg_t are optional.

Library:

libdim

Use the -l dim option to qcc to link against this library.

Description:

The dim_alloc_intr() function allocates dynamic interrupts.

Returns:

EOK on success, or errno on failure.

Errors:

This function returns any of the errors from open() or MsgSendv(), or the following:
EINVAL
One of the input values aren't valid.
Page updated: