srpt_get_class_port_info(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… srpt_get_class_port_info β€” like, the Kernel API Manual, section 9, bestie

okay so picture this: it's a kernel API manual page, the manual name is Kernel API Manual (section 9, iykyk), and the star of the show is srpt_get_class_port_info. she's a function. she has one job. and honestly? she ate. πŸŽ€


✨ NAME ✨

srpt_get_class_port_info β€” copy ClassPortInfo to a management datagram

like literally that's it, that's the whole vibe. copy the ClassPortInfo into a management datagram and go πŸ¦‹


🌸 SYNOPSIS 🌸

void srpt_get_class_port_info (struct ib_dm_mad *mad );

no cap, that's the whole signature. void return β€” she doesn't give anything back, she just does the thing. main character energy fr fr πŸ‘‘


πŸ’– ARGUMENTS πŸ’–

  • mad β€” the datagram that will be sent as response to DM_ATTR_CLASS_PORT_INFO. that's the one. that's the whole parameter. it's giving "one job and she's doing it flawlessly" πŸ’…

🧚 DESCRIPTION 🧚

so what we're doing here is copying the ClassPortInfo over into a management datagram, so it can go out as the response to DM_ATTR_CLASS_PORT_INFO. simple. clean. iconic.

and if you wanna know what ClassPortInfo actually is, go read section 16.3.3.1 ClassPortInfo in the InfiniBand Architecture Specification. the manpage said see also and I'm just passing the message along, bestie 🫢

no hidden tricks here, no weird caveats β€” the original genuinely just points you at the spec and dips. respect. 🌈

πŸ¦‹ SEE ALSO πŸ¦‹

first up, the kernel file this whole situation lives in:

  • Kernel file ./drivers/infiniband/ulp/srpt/ib_srpt.c

and then literally the entire friend group, all the srpt_* besties, in order:

fifty-one links. fifty-one. I counted so you don't have to, you're welcome πŸ˜­πŸ’–


mwah, that's the page πŸ’œ this little love letter came to you from ./drivers/infiniband/ulp/srpt, dated October 2026, and it's filed under srpt_get_class_port_info(9) in the Kernel API Manual β€” section 9, always and forever. now go copy that ClassPortInfo, bestie, slay πŸŽ€βœ¨πŸ”₯

πŸ“¦ where this page comes from