libocxl
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. More...
 
ocxl_err ocxl_irq_alloc (ocxl_afu_h afu, void *info, ocxl_irq_h *irq)
 Allocate an IRQ for an open AFU. More...
 
uint64_t ocxl_irq_get_handle (ocxl_afu_h afu, ocxl_irq_h irq)
 Get the 64 bit IRQ handle for an IRQ. More...
 
int ocxl_irq_get_fd (ocxl_afu_h afu, ocxl_irq_h irq)
 Get the file descriptor associated with an IRQ. More...
 
int ocxl_afu_get_event_fd (ocxl_afu_h afu)
 Get a descriptor that will trigger a poll when an AFU event occurs. More...
 
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. More...
 

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.