ib_modify_port(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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. u32 says 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 a struct 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 πŸ’€):

not me listing all thirty of them πŸ’€ but like, every single one matters, iykyk 🧚


πŸ’– reminder bestie: ib_modify_port needs that port_modify_mask to know what it's allowed to touch, and the port_modify struct 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