ib_modify_device(9)
π ib_modify_device β the Kernel API Manual page, bestie edition
okay so real talk, this one is a Kernel API Manual entry, and honestly? It's short, sweet, and does exactly what it says on the tin. No drama, no plot twists. Let's get into it π
β¨ NAME β¨
ib_modify_device β change IB device attributes, periodt. That's the whole vibe. You point it at a device, and it changes stuff. Iconic behaviour, lowkey.
πΈ SYNOPSIS πΈ
int ib_modify_device (struct ib_device *device , int device_modify_mask
, struct ib_device_modify *device_modify );
bestie look at that signature. Three args, one int coming back at you. It's giving "I know exactly what I'm doing" energy π
π¦ ARGUMENTS π¦
deviceβ the device you wanna modify. The main character, fr. Everything happens to this one.device_modify_maskβ the mask of attributes to change. Think of it as your "which of these things am I touching today" list β¨device_modifyβ the new attribute values. The actual glow-up content lives here π«Ά
π₯ DESCRIPTION π₯
okay so ib_modify_device changes a device's attributes, and how it knows which attributes to change is literally the whole point: it's specified by the device_modify_mask and the device_modify structure. Mask says what, struct says to what. Match made in heaven, no cap π
π SEE ALSO π
also the kernel file ./drivers/infiniband/core/device.c is in the mix β that's where this lives, iykyk π§
and here's the full bestie roster, like the whole group chat, every single one:
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_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_port(9)ib_find_gid(9)ib_find_pkey(9)ib_get_net_dev_by_params(9)
ngl that's a LOT of cross-references, but every one of them is a real one β go read them, they're all slaying in their own way π
and that's the page!! sourced straight from ./drivers/infiniband/core, dated October 2026, and it's ib_modify_device(9) forever and always πβ bye bestie, go modify some devices responsibly π
π¦ 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