.\" Copyright 2018 IBM Corp. .\" .TH CXL_GET_TUNNELED_OPS_SUPPORTED 3 2018-04-26 "LIBCXL 1.7" "CXL Manual" .SH NAME cxl_get_tunneled_ops_supported \- get the status of tunneled operations on the CXL device .SH SYNOPSIS .B #include .PP .B "int cxl_get_tunneled_ops_supported(struct cxl_adapter_h" .BI * adapter ", long *" valp ); .SH DESCRIPTION .BR cxl_get_tunneled_ops_supported () copies the status of tunneled operations on the CXL .I adapter to the long integer pointed to by .IR valp . This value will be 1 if tunneled operations are supported in capi mode, 0 otherwise. .PP Tunneled operations (atomics and as_notify) are supported on POWER9. Libcxl functions related to as_notify are .BR cxl_afu_host_thread_wait (), .BR cxl_work_disable_wait (), .BR cxl_work_enable_wait () and .BR cxl_work_get_tid (). .SH RETURN VALUE On success, 0 is returned. On error, \-1 is returned and .I errno is set appropriately. .SH ERRORS .TP .B EINVAL Invalid argument value. .TP .B ENODEV The kernel does not export the tunneled operations status. .TP .B ENOMEM Insufficient memory. .SH SEE ALSO .BR cxl (3), .BR cxl_adapter_next (3), .BR cxl_afu_host_thread_wait (3), .BR cxl_get_base_image (3), .BR cxl_get_caia_version (3), .BR cxl_get_image_loaded (3), .BR cxl_get_psl_revision (3), .BR cxl_get_timebase_synced (3) .BR cxl_work_disable_wait (3), .BR cxl_work_enable_wait (3), .BR cxl_work_get_tid (3)