ocxl_afu(3) | Library Functions Manual | ocxl_afu(3) |
ocxl_afu - These functions provide access to open and close the AFU.
ocxl_err ocxl_afu_open_from_dev (const char *path,
ocxl_afu_h *afu)
Open an AFU context at a specified path. ocxl_err
ocxl_afu_open_specific (const char *name, const char
*physical_function, int16_t afu_index, ocxl_afu_h *afu)
Open an AFU context with a specified name on a specific card/afu index.
ocxl_err ocxl_afu_open (const char *name, ocxl_afu_h
*afu)
Open an AFU context with a specified name. ocxl_err
ocxl_afu_attach (ocxl_afu_h afu, __attribute__((unused))
uint64_t flags)
Attach the calling process's memory to an open AFU context. ocxl_err
ocxl_afu_close (ocxl_afu_h afu)
Close an AFU and detach it from the context.
These functions provide access to open and close the AFU.
A typical workflow involves the following:
Subsequently, you will need to write information to the AFU's MMIO space (see ocxl_mmio) and also configure and handle interrupts (see ocxl_irq)
Finally, to free the AFU handle, you can use ocxl_afu_close().
Attach the calling process's memory to an open AFU context. An open AFU context is sufficient to configure the AFU, but in order for it to access application memory, the context must be attached to the current process.
If specified, also sets the value of the PPC specific PSL AMR.
Precondition:
Parameters:
Return values:
Close an AFU and detach it from the context. This will free all resources allocated to the AFU, including MMIO areas and IRQs. The AFU handle may not be used after it is closed.
Parameters:
Return values:
Postcondition:
Open an AFU context with a specified name.
Parameters:
Return values:
Open an AFU context at a specified path.
Parameters:
Return values:
Open an AFU context with a specified name on a specific card/afu index.
Parameters:
Return values:
Generated automatically by Doxygen for libocxl from the source code.
Tue Sep 11 2018 | libocxl |