ENUM SRPT_COMMAND_STATE(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ enum srpt_command_state(9) ✨

okay so bestie, welcome to the Kernel API Manual πŸ’– this is the tea on enum srpt_command_state β€” like, the whole lifecycle mood board for a SCSI command that's being managed by SRPT. every command has a journey and this enum is literally its main character arc πŸ’…


πŸ¦‹ NAME πŸ¦‹

enum srpt_command_state β€” the SCSI command state managed by SRPT. that's it, that's the vibe check πŸŽ€


🌸 SYNOPSIS 🌸

enum srpt_command_state {
    SRPT_STATE_NEW ,
    SRPT_STATE_NEED_DATA ,
    SRPT_STATE_DATA_IN ,
    SRPT_STATE_CMD_RSP_SENT ,
    SRPT_STATE_MGMT ,
    SRPT_STATE_MGMT_RSP_SENT ,
    SRPT_STATE_DONE

};

like, seven states, no cap. let's get into each one 🫢


πŸ‘‘ CONSTANTS πŸ‘‘

  • SRPT_STATE_NEW β€” a new command just pulled up and is being processed. it's giving "just arrived, still getting ready" energy ✨
  • SRPT_STATE_NEED_DATA β€” we're processing a write or bidir command and lowkey just waiting for the data to show up. sitting there. waiting. πŸ™ˆ
  • SRPT_STATE_DATA_IN β€” the data for the write or bidir command finally arrived and is being processed. ate, no crumbs πŸ’…
  • SRPT_STATE_CMD_RSP_SENT β€” the SRP_RSP for SRP_CMD has been sent. periodt, that response is out the door πŸ’Œ
  • SRPT_STATE_MGMT β€” processing a SCSI task management command. management era, very girlboss πŸ‘‘
  • SRPT_STATE_MGMT_RSP_SENT β€” the SRP_RSP for SRP_TSK_MGMT has been sent. another response successfully delivered, we love to see it πŸŽ€
  • SRPT_STATE_DONE β€” command processing finished successfully, or command processing has been aborted, or command processing failed. yeah it's the catch-all ending 😭 three very different stories, same final state. it's giving "all roads lead here" fr fr

πŸ”₯ SEE ALSO πŸ”₯

kernel file ./drivers/infiniband/ulp/srpt/ib_srpt.h β€” plus the whole friend group, go say hi:

  • struct srpt_ioctx(9)
  • struct srpt_recv_ioctx(9)
  • struct srpt_send_ioctx(9)
  • enum rdma_ch_state(9)
  • struct srpt_rdma_ch(9)
  • struct srpt_nexus(9)
  • struct srpt_port_attrib(9)
  • struct srpt_tpg(9)
  • struct srpt_port_id(9)
  • struct srpt_port(9)
  • struct srpt_device(9)

and that's the whole page bestie, you're so welcome πŸ§šβ€β™€οΈ this icon lives over in ./drivers/infiniband/ulp/srpt, dated October 2026 β€” catch you in the next manpage, mwah πŸ’œπŸŒˆβ­

πŸ“¦ where this page comes from