| 1 |
.\" -*- nroff -*- |
| 2 |
.\" Licensed under the OpenIB.org BSD license (FreeBSD Variant) - See COPYING.md |
| 3 |
.\" |
| 4 |
.TH IBV_QUERY_RT_VALUES_EX 3 2016-2-20 libibverbs "Libibverbs Programmer's Manual" |
| 5 |
.SH "NAME" |
| 6 |
ibv_query_rt_values_ex \- query an RDMA device for some real time values |
| 7 |
.SH "SYNOPSIS" |
| 8 |
.nf |
| 9 |
.B #include <infiniband/verbs.h> |
| 10 |
.sp |
| 11 |
.BI "int ibv_query_rt_values_ex(struct ibv_context " "*context", |
| 12 |
.BI " struct ibv_values_ex " "*values" ); |
| 13 |
.fi |
| 14 |
.SH "DESCRIPTION" |
| 15 |
.B ibv_query_rt_values_ex() |
| 16 |
returns certain real time values of a device |
| 17 |
.I context\fR. |
| 18 |
The argument |
| 19 |
.I attr |
| 20 |
is a pointer to an ibv_device_attr_ex struct, as defined in <infiniband/verbs.h>. |
| 21 |
.PP |
| 22 |
.nf |
| 23 |
struct ibv_values_ex { |
| 24 |
.in +8 |
| 25 |
uint32_t comp_mask; /* Compatibility mask that defines the query/queried fields [in/out] */ |
| 26 |
struct timespec raw_clock; /* HW raw clock */ |
| 27 |
.in -8 |
| 28 |
}; |
| 29 |
|
| 30 |
enum ibv_values_mask { |
| 31 |
IBV_VALUES_MASK_RAW_CLOCK = 1 << 0, /* HW raw clock */ |
| 32 |
}; |
| 33 |
|
| 34 |
.fi |
| 35 |
.SH "RETURN VALUE" |
| 36 |
.B ibv_query_rt_values_ex() |
| 37 |
returns 0 on success, or the value of errno on failure (which indicates the failure reason). |
| 38 |
.SH "NOTES" |
| 39 |
This extension verb only calls the provider, the provider has to query this value somehow and mark |
| 40 |
the queried values in the comp_mask field. |
| 41 |
.SH "SEE ALSO" |
| 42 |
.BR ibv_query_device (3), |
| 43 |
.BR ibv_open_device (3), |
| 44 |
.BR ibv_query_port (3), |
| 45 |
.BR ibv_query_pkey (3), |
| 46 |
.BR ibv_query_gid (3) |
| 47 |
.SH "AUTHORS" |
| 48 |
.TP |
| 49 |
Matan Barak <[email protected]> |
| 50 |
.TP |
| 51 |
Yishai Hadas <[email protected]> |