libocxl
Loading...
Searching...
No Matches
Macros | Typedefs | Functions
irq.c File Reference

Go to the source code of this file.

Macros

#define MAX_EVENT_SIZE   (16*sizeof(uint64_t))
 

Typedefs

typedef struct ocxl_kernel_event_header ocxl_kernel_event_header
 
typedef struct ocxl_kernel_event_xsl_fault_error ocxl_kernel_event_xsl_fault_error
 

Functions

void irq_dealloc (ocxl_afu *afu, ocxl_irq *irq)
 Deallocate a single IRQ.
 
ocxl_err ocxl_irq_alloc (ocxl_afu_h afu, void *info, ocxl_irq_h *irq)
 Allocate an IRQ for an open AFU.
 
uint64_t ocxl_irq_get_handle (ocxl_afu_h afu, ocxl_irq_h irq)
 Get the 64 bit IRQ handle for an IRQ.
 
int ocxl_irq_get_fd (ocxl_afu_h afu, ocxl_irq_h irq)
 Get the file descriptor associated with an IRQ.
 
int ocxl_afu_get_event_fd (ocxl_afu_h afu)
 Get a descriptor that will trigger a poll when an AFU event occurs.
 
int ocxl_afu_event_check_versioned (ocxl_afu_h afu, int timeout, ocxl_event *events, uint16_t event_count, uint16_t event_api_version)
 Check for pending IRQs and other events.
 
ocxl_err ocxl_afu_get_p9_thread_id (ocxl_afu_h afu, uint16_t *thread_id)
 Get the thread ID required to wake up a Power 9 wait instruction.
 

Macro Definition Documentation

◆ MAX_EVENT_SIZE

#define MAX_EVENT_SIZE   (16*sizeof(uint64_t))

Definition at line 34 of file irq.c.

Function Documentation

◆ irq_dealloc()

void irq_dealloc ( ocxl_afu *  afu,
ocxl_irq *  irq 
)

Deallocate a single IRQ.

Parameters
afuthe AFU the IRQ belongs to
irqthe IRQ

Definition at line 42 of file irq.c.