rdma_find_gid(9)
π rdma_find_gid(9) β Kernel API Manual π
okay bestie, welcome to the rdma_find_gid(9) page from the Kernel API Manual. This one is a little GID-lookup situation, and weβre gonna read it together. π
β¨ NAME β¨
rdma_find_gid β returns SGID attributes if the matching GID is found. Thatβs the whole mission. π
πΈ SYNOPSIS πΈ
const struct ib_gid_attr * rdma_find_gid (struct ib_device *device ,
const union ib_gid *gid , enum ib_gid_type gid_type , struct net_device
*ndev );
π¦ ARGUMENTS π¦
deviceβ the device to query. Like, which RDMA device are we asking? πgidβ the GID value to search for. The actual thing weβre hunting.gid_typeβ the GID type to search for. Gotta match the type too, no cap.ndevβ in RoCE, the net device of the device.NULLmeans ignore. So if itβsNULL, weβre not checking that.
π DESCRIPTION π
rdma_find_gid searches for the specified GID value in the software cache. Itβs giving βlook it up in the cache, bestieβ energy. β¨
It returns GID attributes if a valid GID is found, or returns ERR_PTR for the error. The caller must invoke rdma_put_gid_attr to release the reference. Do not forget this part β not me being dramatic, itβs literally the cleanup rule. π«Ά
lowkey important: the caller has to call rdma_put_gid_attr to release the reference.
π SEE ALSO π
- 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_get_gid_attr(9)rdma_query_gid_table(9)rdma_put_gid_attr(9)rdma_hold_gid_attr(9)rdma_read_gid_attr_ndev_rcu(9)rdma_read_gid_l2_fields(9)ib_dispatch_event(9)
okay thatβs the page, bestie. This oneβs from source/version ./drivers/infiniband/core, dated October 2026, and its title is rdma_find_gid(9). byeee, go 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