.\" Extracted by src2man from /build/rpma-UAXlGU/rpma-1.2.0/src/include/librpma.h .\" Text automatically generated by txt2man .TH rpma_utils_ibv_context_is_odp_capable 3 "10 January 2023" "RPMA" "RPMA Programmer's Manual" .SH NAME \fBrpma_utils_ibv_context_is_odp_capable \fP- is On-Demand Paging supported .SH SYNOPSIS .nf .fam C #include struct ibv_context; int \fBrpma_utils_ibv_context_is_odp_capable\fP(struct ibv_context *ibv_ctx, int *is_odp_capable); .fam T .fi .fam T .fi .SH DESCRIPTION \fBrpma_utils_ibv_context_is_odp_capable\fP() queries the RDMA device context's capabilities and check if it supports On-Demand Paging. .SH RETURN VALUE The \fBrpma_utils_ibv_context_is_odp_capable\fP() function returns 0 on success or a negative error code on failure. The *is_odp_capable value on failure is undefined. .SH ERRORS \fBrpma_utils_ibv_context_is_odp_capable\fP() can fail with the following errors: .IP \(bu 3 RPMA_E_INVAL - ibv_ctx or is_odp_capable is NULL .IP \(bu 3 RPMA_E_PROVIDER - \fBibv_query_device_ex\fP() failed, the exact cause of the error can be read from the log .SH SEE ALSO \fBrpma_utils_get_ibv_context\fP(3), \fBlibrpma\fP(7) and https://pmem.io/rpma/