rdma_destroy_ah_attr(9)
π rdma_destroy_ah_attr β the kernel API manual, bestie edition
okay so real talk, this is a page from the Kernel API Manual, section 9, and it's about rdma_destroy_ah_attr. it's short. it's sweet. it's iconic. let's get into it π
β¨ NAME β¨
rdma_destroy_ah_attr β release the reference to the SGID attribute of an ah attribute. that's it. that's the whole job. she's a one-task queen π
π¦ SYNOPSIS π¦
void rdma_destroy_ah_attr (struct rdma_ah_attr *ah_attr );
like, look at her. no return value. void. she takes what she takes and gives nothing back (except, y'know, correctness) π
πΈ ARGUMENTS πΈ
ah_attrβ pointer to the ah attribute. literally just a pointer to yourahattribute struct. that's the only thing she needs from you π«Ά
π DESCRIPTION π
so here's the vibe: this function releases the reference to the SGID attribute of the ah attribute if it is non NULL. key word: if. she's polite, she checks first.
and the best part?? it is safe to call this multiple times, and it is safe to call it on a zero initialized ah_attr. no cap. so like, double-calling her is not going to be a whole situation β she's chill like that πβ¨
ngl that's genuinely the whole description. she's a small function with a big heart and zero drama.
π₯ SEE ALSO π₯
the whole friend group, fr fr β from Kernel file ./drivers/infiniband/core/verbs.c:
__ib_alloc_pd(9)ib_dealloc_pd_user(9)rdma_copy_ah_attr(9)rdma_replace_ah_attr(9)rdma_move_ah_attr(9)rdma_create_ah(9)rdma_create_user_ah(9)rdma_move_grh_sgid_attr(9)ib_create_srq_user(9)ib_create_qp_user(9)ib_resolve_eth_dmac(9)ib_modify_qp_with_udata(9)ib_alloc_mr(9)ib_alloc_mr_integrity(9)ib_alloc_xrcd_user(9)ib_dealloc_xrcd_user(9)ib_create_wq(9)ib_destroy_wq_user(9)ib_map_mr_sg_pi(9)ib_map_mr_sg(9)ib_sg_to_pages(9)ib_drain_sq(9)ib_drain_rq(9)ib_drain_qp(9)rdma_alloc_hw_stats_struct(9)rdma_free_hw_stats_struct(9)
like, that's the whole group chat and they all understood the assignment ππ
π§ and that's a wrap!! this page lives in./drivers/infiniband/core, and it's dated October 2026 in the Kernel API Manual, section9. go forth and free your SGID refs responsibly, bestie β mwah ππβ
π¦ 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