ib_device_put(9)
π
ib_device_put β the release the reference girlies
okay so this is a page from the Kernel API Manual, bestie β manual section 9, kernel developer land π§β¨. And honestly? The name says it all: ib_device_put is literally Release IB device reference. Short function. Big consequences. Let's get into it π«Ά
β¨ NAME β¨
ib_device_put β release an IB device reference π
π¦ SYNOPSIS π¦
void ib_device_put (struct ib_device *device );
that's it. that's the whole vibe. void return, so likeβ¦ she doesn't report back. she just does π
π ARGUMENTS π
deviceβ the device whose reference you're releasing, bestie. drop that ref like it's hot π₯
πΈ DESCRIPTION πΈ
So here's the tea β: ib_device_put releases a reference to the IB device. Why do we care? Because while refs are held, that device can't be unregistered, and it definitely can't be freed π. Every ref you're holding is a little "not yet, she's still busy" sticky note.
Release it with ib_device_put and you're basically saying "okay, I'm done, she's free to go" β which lets the device be unregistered and eventually freed β¨.
no cap, this is the cleanup step. hold a ref, do your thing, put the ref back. periodt π
π SEE ALSO π
Think of this as the group chat the function is in β the whole ./drivers/infiniband/core/device.c crew, plus the friends in section 9 π¦:
rdma_dev_access_netns(9)rdma_dev_has_raw_cap(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_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)
like, the whole roster π she knows everybody.
and that's the page, bestie! π this lil icon lives in ./drivers/infiniband/core and the stamp on her birth certificate says October 2026 β so go forth, put that device ref back, and let her be free ππ mwah, 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