Home |
RTTarget-32 Programming Manual System Management BIOS (SMBIOS) Advanced Programmable Interrupt Controller (APIC) Function RTMPTablePCIInterrupt Function RTMPBalanceINTCPUs |
Function RTMPBalanceINTCPUsRTMPBalanceINTCPUs can be used to route interrupts to specific CPUs if Fixed CPU Delivery Mode is being used: UINT RTMPBalanceINTCPUs(int IRQ, DWORD CPUSet); ParametersIRQIRQ of the interrupt to route to a specific CPU. If this parameter is -1, all currently enabled IRQs will be processed. CPUSetA bitmap of CPUs from which this function may select CPUs to handle the interrupt(s). Each bit (0 .. 31) corresponds to CPUs 0 .. 31. RTMPBalanceINTCPUs will select a CPU from the set such that each CPU handles approximately the same number of IRQs. If you want to force RTMPBalanceINTCPUs to use only one specific CPU, set only one bit in this parameter. If CPUSet is 0, all currently running CPUs with the exception of the boot CPU are used. The Boot CPU is excluded by default as it handles the timer interrupt, which cannot be changed. return valueThe number of interrupts processed. This function also handles MSI interrupts. Please note that this function only processes already enabled interrupts. Thus, it is recommend to first install all required interrupt handlers of an application and then call RTMPBalanceINTCPUs(). This function requires APIC mode and will fail if in PIC mode. RTMPSetAPICMode must not have been called with flag RT_APIC_LOWEST_INT_ROUTING for this function to work. RTMPBalanceINTCPUs is not supported if run under RTVmf-32 or RTRth-32.
|