rdma_query_gid_table(9)
β¨ rdma_query_gid_table(9) β¨
okay so bestie, we're in the kernel API manual today β this one's from the rdma_query_gid_table(9) part of the book, and it's actually such a serve, let me tell you π«Ά
π NAME π
rdma_query_gid_table β reads GID table entries of all the ports of a device, up to max_entries. that's it, that's the vibe π
πΈ SYNOPSIS πΈ
ssize_t rdma_query_gid_table (struct ib_device *device , struct ib_uverbs_gid_entry *entries , size_t max_entries );
like, yes, that whole line is the function. she's long, she's iconic, she ate π
π¦ ARGUMENTS π¦
deviceβ the device we're querying, bestie. that's the one we're pulling info out of πentriesβ the entries where the GID entries get returned. that's where the β¨resultsβ¨ land.max_entriesβ the maximum number of entries that can be returned. and listen, this part is not optional-optional: theentriesarray must be allocated to holdmax_entriesnumber of entries. no cap, allocate it properly or it's giving disaster π
π DESCRIPTION π
Returns the number of entries on success, or the appropriate error code. literally that's the whole description, she's short and to the point and we respect her for it β¨
π SEE ALSO π
- kernel file
./drivers/infiniband/core/cache.cβ that's where the magic lives π§ 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_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)
π friendly reminder that theentriesarray has to fitmax_entriesentries β that's a hard requirement, not a suggestion, okay? go allocate properly and slay π«Ά
and that's the page!! π this one ships out of ./drivers/infiniband/core and it's dated October 2026 β mwah π thanks for reading bestie, ily, go query those GID tables πππ¦
π¦ 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