rvt_query_port(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… rvt_query_port(9) πŸ’…

okay bestie, so this is a page from the Kernel API Manual β€” yes, the Kernel API Manual, we're in the big leagues now β€” and it's all about rvt_query_port. Grab a strawberry drink, we're doing kernel networking today πŸ“βœ¨


🌸 NAME 🌸

rvt_query_port β€” literally just passes the query port call along to the driver. that's it. that's the whole vibe. it's giving middleman, but make it iconic πŸ’…


✨ SYNOPSIS ✨

int rvt_query_port (struct ib_device *ibdev , u32 port_num , struct
       ib_port_attr *props );

she takes three things and gives you back an int. no cap 🫢


πŸŽ€ ARGUMENTS πŸŽ€

  • ibdev β€” the Verbs IB dev. your whole device, the main character πŸ‘‘
  • port_num β€” the port number, and listen: it's 1 based from ib core. not 0 based, don't come at me with a 0, it will not slay πŸ™ˆ
  • props β€” the structure that holds the returned properties. she's the little container where the answers go to live 🎁

πŸ”₯ RETURN πŸ”₯

0 on success. that's the only value listed, so 0 on success and we move πŸ’€βœ¨


πŸ¦‹ SEE ALSO πŸ¦‹

the kernel file lives at ./drivers/infiniband/sw/rdmavt/vt.c, and honestly the whole friend group is here:

iykyk, it's a whole roster 🌈


bestie reminder: port_num is 1 based from ib core. i said what i said, go off πŸ’–

and that's the page!! this one's chillin' in ./drivers/infiniband/sw/rdmavt, dated October 2026 β€” yeah, she's from the future, main character energy fr fr β­πŸ¦‹ mwah, see u in the next one πŸŽ€

πŸ“¦ where this page comes from