ib_enum_all_roce_netdevs(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– ib_enum_all_roce_netdevs(9) πŸ’–

okay so welcome to the Kernel API Manual, bestie β€” this page is about ib_enum_all_roce_netdevs, and it's genuinely giving β€œlet’s go find every RoCE device” energy. ✨

🌸 NAME 🌸

ib_enum_all_roce_netdevs β€” enumerate all RoCE devices. no cap, that’s the whole name situation. πŸ’…

πŸŽ€ SYNOPSIS πŸŽ€

void ib_enum_all_roce_netdevs (roce_netdev_filter filter , void
*filter_cookie , roce_netdev_callback cb , void *cookie );

πŸ’… ARGUMENTS πŸ’…

  • filter β€” should we call the callback? πŸ‘€ like, yes or no, bestie.
  • filter_cookie β€” the cookie that gets passed to filter.
  • cb β€” the callback to call for each found RoCE ports. (yes, β€œports” plural β€” we are not editing the man page’s grammar, periodt.)
  • cookie β€” the cookie that gets passed back to the callback.

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so here’s the vibe: it enumerates all RoCE devices’ physical ports which are related to netdevices, and it calls callback on each device for which the filter function returns non zero. the callback is literally the main character here, and filter is the vibe check that decides who gets called. iconic behavior, honestly. ✨

🌸 SEE ALSO 🌸

the kernel file is ./drivers/infiniband/core/device.c, and here’s the whole SEE ALSO squad β€” every single one, no skips, iykyk:

okay bye bestie 🫢 this page’s source/version is ./drivers/infiniband/core, dated October 2026, and it’s still ib_enum_all_roce_netdevs(9) β€” periodt. πŸ’…βœ¨

πŸ“¦ where this page comes from