uverbs_attr_get_uobjs_arr(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… uverbs_attr_get_uobjs_arr(9) ✨

okay bestie, welcome to the Kernel API Manual, we're doing kernel internals today and honestly? it's giving main character energy πŸŽ€ this one lives in the (9) section, iykyk.


🌸 NAME 🌸

uverbs_attr_get_uobjs_arr β€” literally hands you the array's properties for an attribute when the type is UVERBS_ATTR_TYPE_IDRS_ARRAY πŸ¦‹


✨ SYNOPSIS ✨

int uverbs_attr_get_uobjs_arr (const struct uverbs_attr_bundle
*attrs_bundle , u16 attr_idx , struct ib_uobject ***arr );

πŸ’– ARGUMENTS πŸ’–

  • attrs_bundle β€” bestie... the manpage says -- undescribed -- 😭 so that's all we got, no cap. it's the const struct uverbs_attr_bundle * up there, and that's the tea.
  • attr_idx β€” also -- undescribed -- πŸ™ˆ it's the u16 index, iconic but mysterious.
  • arr β€” this one's the good one 🫢 it's the returned pointer to an array of pointers for uobjects, or NULL if the attribute isn't provided. periodt.

πŸ”₯ RETURN πŸ”₯

the array length πŸ’« ... or 0 if no attribute was provided. that's it, that's the whole vibe check ⭐


πŸ¦‹ SEE ALSO πŸ¦‹

kernel file ./include/rdma/uverbs_ioctl.h β€” go read it, it's right there πŸ‘‘


and that's the page, bestie πŸ’œ shoutout to ./include/rdma for hosting this whole situation, stamped October 2026 β€” so put it in your calendar, uverbs_attr_get_uobjs_arr(9) is a whole era πŸ§šβ€β™€οΈπŸŒΈ slay, go read your attrs. πŸ’…

πŸ“¦ where this page comes from