mlx5dv_ts_to_ns(3)

mlx5dv_ts_to_ns3

Convert device timestamp from hca core clock units to the corresponding nanosecond counts

Usage

#include <infiniband/mlx5dv.h>

uint64_t mlx5dv_ts_to_ns(struct mlx5dv_clock_info *clock_info,
			      uint64_t device_timestamp);

Overview

mlx5dv_ts_to_ns(3) Converts a host byte order device_timestamp from HCA core clock units into the corresponding nanosecond wallclock time.

struct mlx5dv_clock_info can be retrieved using mlx5dv_get_clock_info(3).

The greater the difference between the device reporting a timestamp and the last mlx5dv_clock_info update, the greater the inaccuracy of the clock time conversion.

Return value

Timestamp in nanoseconds

Releases

Unchanged in 5 releases since Debian 10 (Buster).

  1. 10–Arch

Authors

Feras Daoud <[email protected]>

From rdma-core 65.0-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.