irdma_sc_ge...ded_ird_size(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… irdma_sc_get_encoded_ird_size(9) πŸ’…

okay bestie, welcome to the Kernel API Manual ✨ β€” this one's a single little function from the irdma driver and honestly she's lowkey iconic. (the page header got clipped to irdma_sc_ge...ded_ird_size(9) like it ran out of breath 😭 but we're using the full name, no cap)


🌸 NAME 🌸

irdma_sc_get_encoded_ird_size β€”

and that's it. that's the whole description. the dash is literally just sitting there with nothing after it πŸ’€ the manpage said "name: given" and peaced out. we love a mysterious queen.


✨ SYNOPSIS ✨

u8 irdma_sc_get_encoded_ird_size (u16 ird_size );

she takes one u16 and hands you back a u8. tiny function, big main character energy πŸŽ€


πŸ’– ARGUMENTS πŸ’–

  • ird_size β€” the IRD size. okay so here's the tea πŸ“: the ird that comes in from the connection gets rounded to a supported HW setting, and then it's encoded for the ird_size field of qp_ctx. so it's not a straight pass-through, she does a little glow-up on the way through ✨

consumers are expected to provide a valid ird size based on hardware attributes β€” that's on you, bestie, not on her. πŸ™ˆ

and if the input is invalid? IRD size defaults to a value of 4. dramatic but fair πŸ’…

πŸ¦‹ SEE ALSO πŸ¦‹

first up, the actual home of this code β€” the kernel file:

./drivers/infiniband/hw/irdma/ctrl.c

and now the whole extended friend group 😭 (yes, all of them, i'm not skipping anybody):

like i said. the whole group chat. πŸ”₯


πŸŽ€ a lil sign-off πŸŽ€

this page lives at ./drivers/infiniband/hw/irdma, dated October 2026 🌈 β€” so she's from the future, obviously, and she's serving. go encode some ird sizes, bestie. slay. periodt. πŸ’œ

πŸ“¦ where this page comes from