ib_device_set_netdev(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 NAME 🌸

okay so bestie, welcome to ib_device_set_netdev(9) β€” yes, the Kernel API Manual page for ib_device_set_netdev ✨ β€” and it's literally about associating the ib_dev with an underlying net_device. 🫢

✨ SYNOPSIS ✨

int ib_device_set_netdev (struct ib_device *ib_dev , struct net_device *ndev , u32 port );

πŸŽ€ ARGUMENTS πŸŽ€

  • ib_dev β€” the device to modify πŸ‘‘
  • ndev β€” the net_device to affiliate, and it may be NULL 🫢
  • port β€” the IB port the net_device is connected to πŸ”Œ

πŸ¦‹ DESCRIPTION πŸ¦‹

Drivers should use this to link the ib_device to a netdev so the netdev shows up in interfaces like ib_enum_roce_netdev. ✨ Only one netdev may be affiliated with any port. periodt.

⚠️ caller responsibility check: the caller must ensure that the given ndev is not unregistered or unregistering, and that either the ib_device is unregistered or ib_device_set_netdev is called with NULL when the ndev sends a NETDEV_UNREGISTER event. 😭 this is not a drill, bestie.

🌈 SEE ALSO 🌈

Kernel file ./drivers/infiniband/core/device.c β€” plus the whole squad:


that's the whole page, bestie πŸ’– source/version ./drivers/infiniband/core, dated October 2026, and the page itself is ib_device_set_netdev(9). mwah πŸ’‹

πŸ“¦ where this page comes from