logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

ibv_query_rt_values_ex - query an RDMA device for some real time values

Authors

Matan Barak <matanb@mellanox.com> Yishai Hadas <yishaih@mellanox.com> libibverbs 2016-2-20 IBV_QUERY_RT_VALUES_EX(3)

Description

ibv_query_rt_values_ex() returns certain real time values of a device context. The argument attr is a pointer to an ibv_device_attr_ex struct, as defined in <infiniband/verbs.h>. struct ibv_values_ex { uint32_t comp_mask; /* Compatibility mask that defines the query/queried fields [in/out] */ struct timespec raw_clock; /* HW raw clock */ }; enum ibv_values_mask { IBV_VALUES_MASK_RAW_CLOCK = 1 << 0, /* HW raw clock */ };

Name

ibv_query_rt_values_ex - query an RDMA device for some real time values

Notes

This extension verb only calls the provider, the provider has to query this value somehow and mark the queried values in the comp_mask field.

Return Value

ibv_query_rt_values_ex() returns 0 on success, or the value of errno on failure (which indicates the failure reason).

See Also

ibv_query_device(3), ibv_open_device(3), ibv_query_port(3), ibv_query_pkey(3), ibv_query_gid(3)

Synopsis

#include<infiniband/verbs.h>intibv_query_rt_values_ex(structibv_context*context,structibv_values_ex*values);

See Also