ib_modify_port(9)
π ib_modify_port(9) β the kernel API manual, but make it group-chat
okay so bestie, welcome to the ib_modify_port(9) page from the Kernel API Manual β¨ this is the one that changes a port's attributes, and honestly? it's giving "small function, big responsibility" energy π
πΈ NAME πΈ
ib_modify_port β Modifies the attributes for the specified port.
like literally, that's the whole job. it modifies stuff. on a port. iconic behavior fr fr π
β¨ SYNOPSIS β¨
int ib_modify_port (struct ib_device *device , u32 port_num , int
port_modify_mask , struct ib_port_modify *port_modify );
returns an int, takes four things, and the line break in the middle of int is exactly how the original has it, so we're keeping it, no cap π«Ά
π¦ ARGUMENTS π¦
deviceβ The device to modify. like, the whole device. she's the main character here πport_numβ The number of the port to modify. which port? this port.u32says so πport_modify_maskβ Mask used to specify which attributes of the port to change. it's the vibe check for "what are we even touching" βport_modifyβ New attribute values for the port. the actual glow-up content lives in here, in astruct ib_port_modifyπ
π₯ DESCRIPTION π₯
ib_modify_port changes a port's attributes as specified by the port_modify_mask and port_modify structure.
that's it. that's the whole description. short king energy π the mask picks which attributes, the port_modify struct carries the new values, and the port comes out the other side with a fresh fit π
β¨
π SEE ALSO π
Kernel file ./drivers/infiniband/core/device.c β and also, bestie, get comfy, because this list is LONG and we are NOT skipping a single one π (the way this function has so many friends, highkey networking queen behavior π):
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_device(9)ib_find_gid(9)ib_find_pkey(9)ib_get_net_dev_by_params(9)
not me listing all thirty of them π but like, every single one matters, iykyk π§
π reminder bestie:ib_modify_portneeds thatport_modify_maskto know what it's allowed to touch, and theport_modifystruct for the actual values. don't come for me if you pass a mask that doesn't match what you put in the struct β the manpage told you what it does and nothing more, so we're not out here inventing behavior fr fr π«Ά
and that's the page!! πΈ this came out of ./drivers/infiniband/core in October 2026, from the Kernel API Manual β slay, bye, go modify some ports 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