rdma_put_gid_attr(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 πŸ’œ:


quick vibe check: the ref you grab with rdma_get_gid_attr (or any API handing you an ib_gid_attr pointer, 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