scsi_host_lookup(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ¦‹ 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


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