srpt_set_ioc(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 srpt_set_ioc β€” the Kernel API Manual moment πŸ’…

ok so this is a page from the Kernel API Manual (section 9, kernel-space vibes only, no userland shenanigans) and it's about srpt_set_ioc, which honestly does one tiny adorable thing and we're gonna love it for that πŸŽ€


✨ NAME ✨

srpt_set_ioc β€” initialize a IOUnitInfo structure 🫢


✨ SYNOPSIS ✨

void srpt_set_ioc (u8 *c_list , u32 slot , u8 value );

that's it. that's the whole signature. void return, three args, no drama, no cap πŸ’€


✨ ARGUMENTS ✨

  • c_list β€” the controller list. bestie this is the array we're poking at, okay, be nice to it 🌸
  • slot β€” a slot number, and heads up: it's one-based, so slot 1 is the first one, not slot 0. yes really. i know. it's giving "indexing but make it off-by-one on purpose" πŸ™ˆ
  • value β€” a four-bit value. four. bits. tiny little guy. only the lowest four bits of it even matter, which like… iconic honestly ⭐

✨ DESCRIPTION ✨

okay so here's the whole plot: it copies the lowest four bits of value into element slot of that array of four-bit elements called c_list (the controller list, iykyk πŸ’–).

and the index slot is one-based β€” genuinely cannot stress this enough, it's the whole personality of the function πŸ”₯

so like. it's a setter. it sets. it puts four little bits where they belong and it goes home. main character energy, zero notes πŸ’…

warning-ish reminder bestie: slot is one-based, so if you rock up with a zero you are not in the array anymore and that's a whole different conversation 😭

✨ SEE ALSO ✨

the kernel file lives at ./drivers/infiniband/ulp/srpt/ib_srpt.c and there is. a LOT. of family. we're listing every single one because nobody gets left behind 🫢


and that's the page!! πŸ¦‹ go set some four-bit values in your one-based slots, you absolute legend πŸ‘‘

this little love letter came from ./drivers/infiniband/ulp/srpt and it's dated October 2026 β€” see you in the future bestie, mwah πŸ’œπŸŽ€

πŸ“¦ where this page comes from