scsi_host_set_state(9)
π 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:
scsi_remove_host(9)scsi_add_host_with_dma(9)scsi_host_alloc(9)scsi_host_lookup(9)scsi_host_get(9)scsi_host_busy(9)scsi_host_put(9)scsi_queue_work(9)scsi_flush_work(9)scsi_host_complete_all_commands(9)scsi_host_busy_iter(9)
mwah π source: ./drivers/scsi β dated October 2026 β and the page is still scsi_host_set_state(9). periodt. πβ¨
π¦ 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