add_modify_gid(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’« add_modify_gid β€” a kernel API manual moment πŸ’«

okay so bestie, welcome to the Kernel API Manual, and today's main character is add_modify_gid β€” the little function that handles adding or modifying a GID table entry. yes that's the whole vibe. let's get into it πŸŽ€


✨ NAME ✨

add_modify_gid β€” Add or modify GID table entry πŸ¦‹


🌸 SYNOPSIS 🌸

int add_modify_gid (struct ib_gid_table *table , const struct
       ib_gid_attr *attr );

like. look at her. two params, one int return, absolute icon behavior πŸ’…


🫢 ARGUMENTS 🫢

  • table β€” the GID table where our GID is gonna get added or modified, iykyk πŸ“‹
  • attr β€” the attributes of the GID, aka everything you need to know about her ✨

πŸ’– DESCRIPTION πŸ’–

so what does she actually do? she returns 0 on success, or an appropriate error code if things go sideways. no cap 😭

she also accepts zero GID addition for non RoCE ports β€” specifically for HCA's who report them as valid GID. iconic of them honestly.

🚨 but listen: such zero GIDs are not added to the cache. literally not invited to the party. periodt. πŸ’€

πŸ‘‘ SEE ALSO πŸ‘‘

bestie you are gonna want the whole friend group, so here's everybody β€” and yes, they all live in the Kernel file ./drivers/infiniband/core/cache.c:

the way that's a whole squad πŸ”₯


🌈 and that's the page! this one came from source/version ./drivers/infiniband/core, dated October 2026 β€” go drink some water and go touch a GID table, love u, bye πŸ’œπŸ§š
πŸ“¦ where this page comes from