rvt_query_port(9)
π 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:
rvt_alloc_device(9)rvt_dealloc_device(9)rvt_modify_port(9)rvt_query_pkey(9)rvt_query_gid(9)rvt_alloc_ucontext(9)rvt_dealloc_ucontext(9)rvt_register_device(9)rvt_unregister_device(9)rvt_init_port(9)
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
- 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