ib_enum_roce_netdev(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ¦‹ ib_enum_roce_netdev(9) β€” the kernel API manual page, bestie edition ✨

okay so this is a page from the Kernel API Manual, and it's about ib_enum_roce_netdev β€” yes the whole name, it's a mouthful, we deal πŸ’…


🌸 NAME 🌸

ib_enum_roce_netdev β€” enumerate all RoCE ports

✨ SYNOPSIS ✨

void ib_enum_roce_netdev (struct ib_device *ib_dev , roce_netdev_filter
filter , void *filter_cookie , roce_netdev_callback cb , void *cookie );

πŸŽ€ ARGUMENTS πŸŽ€

  • ib_dev β€” the IB device we want to query. that's the one we're snooping on πŸ‘€
  • filter β€” should we call the callback? literally the vibe check for each port, bestie.
  • filter_cookie β€” cookie passed to the filter πŸͺ
  • cb β€” callback to call for each found RoCE port. one call per port, no crumbs.
  • cookie β€” cookie passed back to the callback πŸͺ (yes, a second cookie. we love a snack)

πŸ’œ DESCRIPTION πŸ’œ

So what this does: it enumerates all of the physical RoCE ports of ib_dev that are related to netdevice, and then calls cb on each device where the filter function returns non-zero. that's it. that's the whole thing. the filter gets a say, and if the filter says yes (non-zero = yes, slay), the callback gets invoked. no cap 🫢

ngl, the filter-returns-non-zero gate is the whole personality of this function β€” no non-zero, no callback. periodt.

πŸ”₯ SEE ALSO πŸ”₯

the whole friend group, in order, plus where the code actually lives β€” kerning <cyan>Kernel file ./drivers/infiniband/core/device.c`:


and that's the page, bestie πŸ’– it lives over in ./drivers/infiniband/core, the source dates to October 2026, and the version tag on this manual page is ib_enum_roce_netdev(9) β€” same as the title, iconic of it honestly. go forth and enumerate responsibly πŸ§šβ€β™€οΈβœ¨

πŸ“¦ where this page comes from