NAME¶
cxl_get_psl_timebase_synced - get the status of timebase on the CXL device
SYNOPSIS¶
#include <libcxl.h>
int cxl_get_psl_timebase_synced(struct cxl_adapter_h
*adapter, long *valp);
DESCRIPTION¶
cxl_get_psl_timebase_synced() copies the status of timebase on the CXL
adapter to the long integer pointed to by valp. This value will
be 1 if the PSL timebase register is synchronized with the core timebase
register, 0 otherwise.
RETURN VALUE¶
On success, 0 is returned. On error, -1 is returned and errno is set
appropriately.
ERRORS¶
- EINVAL
- Invalid argument value.
- ENODEV
- The kernel does not export the PSL timebase status.
- ENOMEM
- Insufficient memory.