ENUM SRPT_COMMAND_STATE(9)
β¨ 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β theSRP_RSPforSRP_CMDhas 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β theSRP_RSPforSRP_TSK_MGMThas 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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms