DOKK / manpages / debian 10 / libcxl-dev / cxl_afu_sysfs_pci.3.en
CXL_AFU_SYSFS_PCI(3) CXL Programmer's Manual CXL_AFU_SYSFS_PCI(3)

cxl_afu_sysfs_pci - get the sysfs path to the PCI device corresponding with an AFU

#include <libcxl.h>

int cxl_afu_sysfs_pci(struct cxl_afu_h *afu, char **pathp);

cxl_afu_sysfs_pci() copies the address of a buffer containing the sysfs path to the PCI device corresponding with afu into the pointer pathp.

On success, this function automatically allocates the returned buffer, which must be freed by the caller (much like asprintf).

On success, 0 is returned. On error, -1 is returned and errno is set appropriately.

Invalid argument value.
Insufficient memory.

asprintf(3), cxl(3), cxl_adapter_afu_next(3), cxl_afu_dev_name(3), cxl_afu_next(3), free(3)

2017-05-24 LIBCXL 1.5