ib_query_port(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

okay bestie, meet ib_query_port(9) from the Kernel API Manual ✨ this is the page for querying IB port attributes, and it is lowkey doing exactly one job very cleanly 🫢

✨ SYNOPSIS ✨

int ib_query_port (struct ib_device *device , u32 port_num , struct
       ib_port_attr *port_attr );

that's the whole signature, no cap πŸ’…

πŸŽ€ ARGUMENTS πŸŽ€

  • device β€” the device to query, bestie. like, which IB device are we looking at?
  • port_num β€” the port number to query. the specific port goes here.
  • port_attr β€” the port attributes. this is where the info lands.

πŸ’… DESCRIPTION πŸ’…

ib_query_port returns the attributes of a port through the port_attr pointer. that's the vibe: device + port number in, port attributes out via that pointer πŸ”₯

🌈 SEE ALSO 🌈

Kernel file: ./drivers/infiniband/core/device.c β€” go peek the source, iykyk ✨


that's the whole page, bestie 🫢 catch you later β€” source: ./drivers/infiniband/core, stamped October 2026, page name: ib_query_port(9) πŸ’–

πŸ“¦ where this page comes from