add_interrupt_array()

Updated: April 19, 2023

Populate the interrupt kernel callout array in the system page.

Synopsis:

void add_interrupt_array (const struct startup_intrinfo *intrs,
                          unsigned size)

Arguments:

intrs
Pointer to the array of startup_intrinfo data structures in the system page.
size
The size, in bytes, of the interrupt kernel callout array in the system page.

Description:

This function adds the interrupt array kernel callouts specified by intrs (for size bytes) into the interrupt kernel callout array in the system page. This function isn't hardware dependent, so its source is in the startup.h header file.

Typically, the init_intrinfo() function calls add_interrupt_array() as its last task before completing its work.

Returns:

>0
Success.
-1
Error