srpt_set_cmd_state(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– srpt_set_cmd_state πŸ’–

okay so bestie, welcome to the Kernel API Manual β€” yes it's a whole manual, yes it's about kernel stuff, and yes we're gonna get through it together 🫢 this one's a lil function called srpt_set_cmd_state and honestly? it does exactly what it says on the tin. no cap.


✨ NAME ✨

srpt_set_cmd_state β€” sets the state of a SCSI command. that's it. that's the whole vibe πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

enum srpt_command_state srpt_set_cmd_state (struct srpt_send_ioctx
*ioctx , enum srpt_command_state new );

🌸 ARGUMENTS 🌸

  • ioctx β€” the Send I/O context. like, the actual thing we're messing with ✨
  • new β€” the new I/O context state. the glow-up we're applying πŸ’«

πŸŽ€ DESCRIPTION πŸŽ€

so here's the tea: it sets the state of a SCSI command. But β€” and this is important, bestie β€” it does not modify the state of aborted commands. nope, those ones are staying exactly where they are, no touchy πŸ™ˆ

and then it returns the previous command state, so you know where it was before you moved it. it's giving receipts, honestly πŸ‘‘


πŸ”₯ SEE ALSO πŸ”₯

the whole friend group, fr fr β€” go say hi to all of them:


and that's the whole page, bestie!! mwah πŸ’‹ this lil icon came from ./drivers/infiniband/ulp/srpt and it's stamped October 2026 β€” screenshot it, frame it, obsess over it πŸŽ€βœ¨πŸ’œ

πŸ“¦ where this page comes from