scsi_host_lookup(9)
π¦ scsi_host_lookup π¦
okay so this is the Kernel API Manual page for scsi_host_lookup, and bestie it is literally about getting a reference to a Scsi_Host by host no. slay.
π NAME π
scsi_host_lookup β get a reference to a Scsi_Host by host no.
β¨ SYNOPSIS β¨
struct Scsi_Host * scsi_host_lookup (unsigned int hostnum );
π ARGUMENTS π
hostnumβ the host number to locate. that's the whole vibe.
π¦ DESCRIPTION π¦
Return value: a pointer to the located Scsi_Host or NULL. no cap.
The caller must do a scsi_host_put to drop the reference that scsi_host_get took. mandatory bestie, do not skip it.
And the put_device below dropped the reference from class_find_device.
π SEE ALSO π
Kernel file ./drivers/scsi/hosts.c
scsi_host_set_state(9)scsi_remove_host(9)scsi_add_host_with_dma(9)scsi_host_alloc(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)
made with π from source ./drivers/scsi, dated October 2026, and yeah this is the scsi_host_lookup(9) moment. 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