Scroll to navigation

CXL_AFU_SYSFS_PCI(3) CXL Programmer's Manual CXL_AFU_SYSFS_PCI(3)

NAME

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

SYNOPSIS

#include <libcxl.h>

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

DESCRIPTION

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).

RETURN VALUE

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

ERRORS

Invalid argument value.
Insufficient memory.

SEE ALSO

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