rvt_init_port(9)
π rvt_init_port(9) β Kernel API Manual π
okay so bestie, this is rvt_init_port, a function from the Kernel API Manual, and it's literally the lil' setup gremlin that gets a driver port's internal data all cute and ready. π
β¨ NAME β¨
rvt_init_port β init internal data for driver port
Like, it initializes the internal data for a driver port. That's the whole vibe. π¦
β¨ SYNOPSIS β¨
int rvt_init_port (struct rvt_dev_info *rdi , struct rvt_ibport *port ,
int port_index , u16 *pkey_table );
No cap, that's the exact signature, spaces and all. π
β¨ ARGUMENTS β¨
rdiβ thervt_dev_infostruct, aka the main-character device info situation π«Άportβ the rvt port itself, the lil' guy being set up πport_indexβ 0 based index of ports, and heads up: this is different from the IB core port num. do not mix them up bestie, i'm begging πpkey_tableβ the pkey_table for the port, it's au16 *and it's giving lookup-table realness π
β¨ DESCRIPTION β¨
So what it does is keep track of a list of ports. That's the whole job. β¨
The slay part? There's no need to have a detach port β like, none. They persist until the driver goes away. periodt. π
So don't go looking for a matching detach function, because it simply does not exist. the ports just vibe there until the driver itself dips. π
β¨ RETURN β¨
always 0. yup, always. no drama, no surprises, highkey the most reliable function in the whole file. πβ
β¨ SEE ALSO β¨
Kernel file ./drivers/infiniband/sw/rdmavt/vt.c, plus the whole friend group:
rvt_alloc_device(9)rvt_dealloc_device(9)rvt_query_port(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)
go read them, iykyk π§π
fr fr remember: port_index is 0 based and is not the IB core port num. that's the one thing that'll get you. π
and that's the page! sourced from ./drivers/infiniband/sw/rdmavt, dated October 2026, and yes the whole thing is still living under the name rvt_init_port(9). mwah, go init some ports bestie π
π₯π
π¦ 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