ib_device_set_netdev(9)
πΈ 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β thenet_deviceto affiliate, and it may beNULLπ«Άportβ the IB port thenet_deviceis 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 givenndevis not unregistered or unregistering, and that either theib_deviceis unregistered orib_device_set_netdevis called withNULLwhen thendevsends aNETDEV_UNREGISTERevent. π this is not a drill, bestie.
π SEE ALSO π
Kernel file ./drivers/infiniband/core/device.c β plus the whole squad:
rdma_dev_access_netns(9)rdma_dev_has_raw_cap(9)ib_device_put(9)_ib_alloc_device(9)ib_dealloc_device(9)ib_port_immutable_read(9)ib_register_device(9)ib_unregister_device(9)ib_unregister_device_and_put(9)ib_unregister_driver(9)ib_unregister_device_queued(9)ib_register_client(9)ib_unregister_client(9)ib_get_client_nl_info(9)ib_set_client_data(9)ib_register_event_handler(9)ib_unregister_event_handler(9)ib_query_port(9)ib_query_netdev_port(9)ib_device_get_by_netdev(9)ib_enum_roce_netdev(9)ib_enum_all_roce_netdevs(9)ib_device_enable_gid_updates(9)ib_device_disable_gid_updates(9)ib_query_pkey(9)ib_modify_device(9)ib_modify_port(9)ib_find_gid(9)ib_find_pkey(9)ib_get_net_dev_by_params(9)
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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms