libmetal
Loading...
Searching...
No Matches
Functions
irq Interrupt Handling Interfaces

Functions

int metal_softirq_init (void)
 metal_softirq_init
 
void metal_softirq_dispatch (void)
 metal_softirq_dispatch
 
int metal_softirq_allocate (int num)
 metal_softirq_allocate
 
void metal_softirq_set (int irq)
 metal_softirq_set
 

Detailed Description

Function Documentation

◆ metal_softirq_allocate()

int metal_softirq_allocate ( int num)

metal_softirq_allocate

Allocate soft IRQs

This function doesn't have any locking, it is not supposed to be called by multiple threads.

Parameters
[in]numnumber of soft irqs requested
Returns
soft irq base for success, or negative value for failure

◆ metal_softirq_dispatch()

void metal_softirq_dispatch ( void )

metal_softirq_dispatch

Dispatch the pending soft IRQs

◆ metal_softirq_init()

int metal_softirq_init ( void )

metal_softirq_init

Initialize libmetal soft IRQs controller

Returns
0 on success, or negative value for failure

◆ metal_softirq_set()

void metal_softirq_set ( int irq)

metal_softirq_set

Set soft IRQ to pending

Parameters
[in]irqsoft IRQ ID to set