mlx5dv_ts_to_ns(3) — Linux manual page

NAME | SYNOPSIS | DESCRIPTION | RETURN VALUE | SEE ALSO | AUTHORS | COLOPHON

MLX5DV_TS_TO_NS(3)      Library Functions Manual      MLX5DV_TS_TO_NS(3)

NAME         top

       mlx5dv_ts_to_ns - Convert device timestamp from HCA core clock
       units to the corresponding nanosecond counts

SYNOPSIS         top

       #include <infiniband/mlx5dv.h>

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

DESCRIPTION         top

       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         top

       Timestamp in nanoseconds

SEE ALSO         top

       mlx5dv(7), mlx5dv_get_clock_info(3), mlx5dv_query_device(3)

AUTHORS         top

       Feras Daoud <[email protected]>

COLOPHON         top

       This page is part of the rdma-core (RDMA Core Userspace Libraries
       and Daemons) project.  Information about the project can be found
       at ⟨https://github.com/linux-rdma/rdma-core⟩.  If you have a bug
       report for this manual page, send it to
       [email protected].  This page was obtained from the
       project's upstream Git repository
       ⟨https://github.com/linux-rdma/rdma-core.git⟩ on 2024-06-14.  (At
       that time, the date of the most recent commit that was found in
       the repository was 2024-06-10.)  If you discover any rendering
       problems in this HTML version of the page, or you believe there
       is a better or more up-to-date source for the page, or you have
       corrections or improvements to the information in this COLOPHON
       (which is not part of the original manual page), send a mail to
       [email protected]

1.0.0                          2017-11-08             MLX5DV_TS_TO_NS(3)

Pages that refer to this page: mlx5dv_get_clock_info(3)mlx5dv_ts_to_ns(3)