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

rpma_utils_ibv_context_is_odp_capable - is On-Demand Paging supported

Description

rpma_utils_ibv_context_is_odp_capable()  queries  the  RDMA device context's capabilities and check if it
       supports On-Demand Paging.

Errors

rpma_utils_ibv_context_is_odp_capable() can fail with the following errors:

       •  RPMA_E_INVAL - ibv_ctx or is_odp_capable is NULL

       •  RPMA_E_PROVIDER - ibv_query_device_ex() failed, the exact cause of the error can be read from the log

Name

rpma_utils_ibv_context_is_odp_capable - is On-Demand Paging supported

Return Value

       The rpma_utils_ibv_context_is_odp_capable() function returns 0 on success or a  negative  error  code  on
       failure. The *is_odp_capable value on failure is undefined.

See Also

rpma_utils_get_ibv_context(3), librpma(7) and https://pmem.io/rpma/

RPMA                                              01 April 2024         rpma_utils_ibv_context_is_odp_capable(3)

Synopsis

             #include <librpma.h>

             struct ibv_context;
             int rpma_utils_ibv_context_is_odp_capable(struct ibv_context *ibv_ctx,
                     int *is_odp_capable);

See Also