RPMA_UTILS_IBV_CONTEXT_IS_ODP_CAPABLE(3)
π rpma_utils_ibv_context_is_odp_capable β RPMA Programmer's Manual (yes bestie, section 3) π
okay so real talk, this whole page lives in the RPMA Programmer's Manual, and it's all about one lil function with a very long name that asks a very simple question: does your RDMA device do On-Demand Paging or not? π¦
β¨ NAME β¨
rpma_utils_ibv_context_is_odp_capable β is On-Demand Paging supported π
πΈ SYNOPSIS πΈ
#include <librpma.h>
struct ibv_context;
int rpma_utils_ibv_context_is_odp_capable(struct ibv_context *ibv_ctx,
int *is_odp_capable);
π DESCRIPTION π
okay so here's the tea β β rpma_utils_ibv_context_is_odp_capable() goes and queries the RDMA device context's capabilities and then checks whether it actually supports On-Demand Paging. that's it. that's the whole vibe check. π«Ά
π₯ RETURN VALUE π₯
0on success β slay, it worked π- a negative error code on failure β not slay π
β οΈ and listen, if it fails, the value sitting in *is_odp_capable is undefined. don't trust it. don't look at it. it's giving chaos. π
π ERRORS π
rpma_utils_ibv_context_is_odp_capable() can fail with these, bestie:
RPMA_E_INVALβibv_ctxoris_odp_capableisNULLπ like, you gotta actually pass something, girlRPMA_E_PROVIDERβibv_query_device_ex()failed, and the exact cause of the error can be read from the log π (go check the log, iykyk)
π SEE ALSO π
and that's the whole page, periodt β¨ this lil gem is from the RPMA project, version dated 01 April 2024 β so yeah, go query those capabilities and stay iconic π ππ¦
π¦ where this page comes from
- ubuntu noble: librpma-dev 1.3.0-2build2 Β· BSD-3
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms