rdma_put_gid_attr(9)
π rdma_put_gid_attr(9) π
okay so this is a page from the Kernel API Manual, and honestly? it's a short one but it's SO important, bestie. it's literally the "you gotta give it back" function. no cap.
β¨ NAME β¨
rdma_put_gid_attr β release your reference to the GID attribute π«Ά
like, you borrowed it, now put it back. periodt.
πΈ SYNOPSIS πΈ
void rdma_put_gid_attr (const struct ib_gid_attr *attr );
that's it. that's the whole vibe. one function, zero drama.
π ARGUMENTS π
attrβ pointer to the GID attribute whose reference needs to be released. yes, that one. the one you're holding onto. let it go, girl π
π¦ DESCRIPTION π¦
okay so listen up, because this is the whole point of the page:
rdma_put_gid_attr must be used to release a reference β and the reference it releases is the one you acquired using rdma_get_gid_attr, or from any APIs that return a pointer to the ib_gid_attr. and that's true regardless of link layer, IB or RoCE, iykyk π₯
basically: however you got your hands on that ib_gid_attr pointer, this is the function that hands the reference back. every time. no exceptions. don't be the person who forgets β that's not main character energy, that's a leak π
β SEE ALSO β
the whole squad, gathered for you π:
- Kernel file
./drivers/infiniband/core/cache.c free_gid_work(9)del_gid(9)add_modify_gid(9)rdma_find_gid_by_port(9)rdma_find_gid_by_filter(9)rdma_query_gid(9)rdma_read_gid_hw_context(9)rdma_find_gid(9)rdma_get_gid_attr(9)rdma_query_gid_table(9)rdma_hold_gid_attr(9)rdma_read_gid_attr_ndev_rcu(9)rdma_read_gid_l2_fields(9)ib_dispatch_event(9)
quick vibe check: the ref you grab withrdma_get_gid_attr(or any API handing you anib_gid_attrpointer, IB or RoCE, doesn't matter) is exactly the ref this one releases. match made in heaven π§
and that's the page, bestie! brought to you by ./drivers/infiniband/core, dated October 2026, living its best life as rdma_put_gid_attr(9). go forth and release your references π
β¨π
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms