Cygdrvinterruptsetcpu, Cygdrvinterruptgetcpu, Cyg_drv_interrupt_get_cpu – Comtrol eCos User Manual
Page 409: Cyg_isr_t, Cyg_drv_interrupt_set_cpu

Chapter 18. Device Driver Interface to the Kernel
cyg_drv_interrupt_set_cpu
Function:
void cyg_drv_interrupt_set_cpu( cyg_vector_t vector,
cyg_cpu_t cpu
)
Arguments:
vector
- interrupt vector to route
cpu
- destination CPU
Result:
None
Level:
ISR
Description:
This function causes all interrupts on the given vector to be routed to the specified CPU. Subsequently, all such
interrupts will be handled by that CPU. This only works if the underlying hardware is capable of performing
this kind of routing. This function does nothing on a single CPU system.
cyg_drv_interrupt_get_cpu
Function:
cyg_cpu_t cyg_drv_interrupt_set_cpu( cyg_vector_t vector )
Arguments:
vector
- interrupt vector to query
Result:
The CPU to which this vector is routed
Level:
ISR
Description:
In multi-processor systems this function returns the id of the CPU to which interrupts on the given vector are
current being delivered. In single CPU systems this function returns zero.
305