scsi_host_set_state(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… NAME πŸ’…

scsi_host_set_state β€” Take the given host through the host state model. ✨ This is from the Kernel API Manual, bestie β€” we're in kernel API land now. 🫢


πŸ¦‹ SYNOPSIS πŸ¦‹

The signature, verbatim, no edits:

int scsi_host_set_state (struct Scsi_Host *shost , enum scsi_host_state
       state );

🌸 ARGUMENTS 🌸

  • shost β€” scsi host to change the state of. πŸ’–
  • state β€” state to change to. πŸ¦‹

πŸ”₯ DESCRIPTION πŸ”₯

Okay so the return tea is literally this, and I am quoting it exactly: "Returns zero if unsuccessful or an error if the requested transition is illegal." 😭

So yes: zero if unsuccessful, or an error if the requested transition is illegal. That's the whole description. The illegal transition part is the dramatic one β€” periodt. πŸ‘‘


🌈 SEE ALSO 🌈

Kernel file ./drivers/scsi/hosts.c 🧚 and the whole friend group:


mwah πŸ’‹ source: ./drivers/scsi β€” dated October 2026 β€” and the page is still scsi_host_set_state(9). periodt. πŸŽ€βœ¨

πŸ“¦ where this page comes from