ocxl_afu_getters(3) | Library Functions Manual | ocxl_afu_getters(3) |
ocxl_afu_getters - OpenCAPI AFU Getters
- The AFU getter functions provide access to AFU metadata, such as the
identifier, paths, and PASID.
uint32_t ocxl_afu_get_pasid (ocxl_afu_h afu)
Get the PASID for the currently open context. const ocxl_identifier *
ocxl_afu_get_identifier (ocxl_afu_h afu)
Get the identifier of the AFU. const char * ocxl_afu_get_device_path
(ocxl_afu_h afu)
Get the canonical device path of the AFU. const char *
ocxl_afu_get_sysfs_path (ocxl_afu_h afu)
Get the canonical sysfs path of the AFU. void ocxl_afu_get_version
(ocxl_afu_h afu, uint8_t *major, uint8_t *minor)
Get the version of the AFU.
The AFU getter functions provide access to AFU metadata, such as the identifier, paths, and PASID.
These operate on any valid AFU handle, even if it has not been opened.
Get the canonical device path of the AFU. Returns the 'true' device path of the AFU from (within /dev), which may or may not be the same as the path passed to the library. It will differ when the specified path is a symlink or duplicate device.
Parameters
Returns
Get the identifier of the AFU. The identifier contains the AFU name & index.
Parameters
Returns
Get the PASID for the currently open context. While not commonly used, some AFU implementations may need their PASID written back to MMIO registers, or shared with other AFUs.
Precondition
Parameters
Returns
Return values
Get the canonical sysfs path of the AFU. Returns the 'true' sysfs path of the AFU (within /sys/class/ocxl).
Parameters
Returns
Get the version of the AFU. Returns the version of the AFU, as specified by the AFU implementation. See Section 4.3.3.1 AFU Descriptor Template 0 of the OpenCAPI Data Link Specification Offset 0x1C, AFU Version Major/Minor.
Parameters
Generated automatically by Doxygen for libocxl from the source code.
Mon Sep 19 2022 | libocxl |