ib_unregister_device(9)
π ib_unregister_device(9) π
okay so bestie, we're in the Kernel API Manual today and this page is literally about saying bye to an IB device πβ¨
π NAME π
ib_unregister_device β unregister an IB device (yes that's the whole vibe, she's a one-liner and she ate π
)
β¨ SYNOPSIS β¨
void ib_unregister_device (struct ib_device *ib_dev );
like, that's it. one function. no return value. she just does the thing π«Ά
πΈ ARGUMENTS πΈ
ib_devβ the device you're unregistering, aka the one getting the goodbye kiss ππ
π¦ DESCRIPTION π¦
So you want to unregister an IB device. Iconic. Here's the tea:
Unregister an IB device. All clients will receive a remove callback. every single one of them, no cap, they all get notified π£
β οΈ bestie listen to me: callers should call this routine only once, and protect against races with registration. one time. periodt. and do the race protection, please, i'm begging π
Typically it should only be called as part of a remove callback in an implementation of driver core's struct device_driver and related. that's the main character usage right there π
And the spicy part πΆοΈ β if ops.dealloc_driver is used then ib_dev will be freed upon return from this function. like, she's gone gone. don't touch her after this. not even a little. π
π₯ SEE ALSO π₯
the whole friend group showed up fr fr, look at this roster:
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_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_device_set_netdev(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)
and the source file lives at ./drivers/infiniband/core/device.c β go read her, she's giving main character energy ππ
π mwah π this page came from ./drivers/infiniband/core, dated October 2026, and she's filed under ib_unregister_device(9). that's the whole glow-up, love u, bye ππ«Άβ¨
π¦ 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