manadv_set_context_attr(3)
π NAME π
okay so manadv_set_context_attr(3) is the manual page for manadv_set_context_attr, and she is here to help you set context attributes. Bestie, this one is giving vendor-specific RDMA context vibes, and weβre gonna get into it. β¨
π SYNOPSIS π
Hereβs the exact include and signature, no cap:
#include <infiniband/manadv.h>
int manadv_set_context_attr(struct ibv_context *context,
enum manadv_set_ctx_attr_type attr_type,
void *attr);
π¦ DESCRIPTION π¦
manadv_set_context_attr gives the ability to set vendor specific attributes on the RDMA context. Thatβs the whole main-character job. π
π ARGUMENTS π
These are the three arguments, bestie β memorize the vibe:
contextβ RDMA device context to work on.attr_typeβ the type of the provided attribute.attrβ pointer to the attribute to be set.
πΈ attr_type πΈ
Hereβs the enum, and yes, that uint8_t comment is staying:
enum manadv_set_ctx_attr_type {
/* Attribute type uint8_t */
MANADV_SET_CTX_ATTR_BUF_ALLOCATORS = 0,
};
MANADV_SET_CTX_ATTR_BUF_ALLOCATORSβ provide an external buffer allocator.
The struct is literally this:
struct manadv_ctx_allocators {
void *(*alloc)(size_t size, void *priv_data);
void (*free)(void *ptr, void *priv_data);
void *data;
};
allocβ function used for buffer allocation instead oflibmanainternal method.freeβ function used to free buffers allocated byallocfunction.dataβ metadata that can be used byallocandfreefunctions.
β RETURN VALUE β
Returns 0 on success, or the value of errno on failure (which indicates the failure reason).
Slay when itβs0, bestie β and check thaterrnowhen itβs not. π
π AUTHOR π
Long Li <longli@microsoft.com>
Cute sign-off time: this is manadv_set_context_attr(3), and the footer doesnβt list a source/version/date β so thatβs the whole page, bestie. π
π«Άπ
π¦ where this page comes from
- alpine 3.24: rdma-core-doc 61.0-r0 Β· GPL-2.0-only OR BSD-2-Clause
- centos-stream 10: rdma-core-devel 62.0-3.el10 Β· GPLv2 or BSD
- centos-stream 9: rdma-core-devel 61.0-3.el9 Β· GPLv2 or BSD
- centos-stream 9: rdma-core-devel 61.0-3.el9 Β· GPLv2 or BSD
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms