Scroll to navigation

CXL_GET_TUNNELED_OPS_SUPPORTED(3) CXL Manual CXL_GET_TUNNELED_OPS_SUPPORTED(3)

NAME

cxl_get_tunneled_ops_supported - get the status of tunneled operations on the CXL device

SYNOPSIS

#include <libcxl.h>

int cxl_get_tunneled_ops_supported(struct cxl_adapter_h *adapter, long *valp);

DESCRIPTION

cxl_get_tunneled_ops_supported() copies the status of tunneled operations on the CXL adapter to the long integer pointed to by valp. This value will be 1 if tunneled operations are supported in capi mode, 0 otherwise.

Tunneled operations (atomics and as_notify) are supported on POWER9. Libcxl functions related to as_notify are cxl_afu_host_thread_wait(), cxl_work_disable_wait(), cxl_work_enable_wait() and cxl_work_get_tid().

RETURN VALUE

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

ERRORS

Invalid argument value.
The kernel does not export the tunneled operations status.
Insufficient memory.

SEE ALSO

cxl(3), cxl_adapter_next(3), cxl_afu_host_thread_wait(3), cxl_get_base_image(3), cxl_get_caia_version(3), cxl_get_image_loaded(3), cxl_get_psl_revision(3), cxl_get_timebase_synced(3) cxl_work_disable_wait(3), cxl_work_enable_wait(3), cxl_work_get_tid(3)

2018-04-26 LIBCXL 1.7