scsi_scan_host(9)
π scsi_scan_host(9) π
okay so first things first, this is a page from the Kernel API Manual (yes, the actual kernel manual, we're fancy now β¨), and it's all about one iconic little function: scsi_scan_host. She scans. She hosts. She slays. Let's get into it π
πΈ NAME πΈ
scsi_scan_host β scan the given adapter π¦
like, literally, that's the whole job. she takes an adapter and she scans it. no cap.
β¨ SYNOPSIS β¨
void scsi_scan_host (struct Scsi_Host *shost );
that's it. that's the whole call. no return value, she just does it π
(void, bestie β she returns nothing and she's at peace with that).
π«Ά ARGUMENTS π«Ά
shostβ the adapter to scan. that's thestruct Scsi_Host *up there. it's the thing you're pointing her at. give her the adapter, she handles the rest π‘
π NOTES π
Should be called after scsi_add_host.
and by "should" I mean please actually do this, bestie π β the adapter has to be added first before you go scanning it, that's just the order of operations. it's giving "read the room" energy.
π SEE ALSO π
Everything else in the SCSI cinematic universe πΏ β the kernel file is ./drivers/scsi/scsi_scan.c, and here's the whole friend group:
scsi_complete_async_scans(9)scsi_unlock_floptical(9)scsi_alloc_sdev(9)scsi_target_reap_ref_release(9)scsi_alloc_target(9)scsi_target_reap(9)scsi_sanitize_inquiry_string(9)scsi_probe_lun(9)scsi_add_lun(9)scsi_inq_str(9)scsi_probe_and_add_lun(9)scsi_sequential_lun_scan(9)scsi_report_lun_scan(9)scsi_add_device(9)scsi_scan_target(9)scsi_prep_async_scan(9)scsi_finish_async_scan(9)scsi_get_pseudo_sdev(9)
that's eighteen (18!!) whole siblings. one big happy SCSI family, iykyk π
π real talk though: the path ./drivers/scsi/scsi_scan.c is where this all lives, so if you're lost, that's your main character location.
and that's the tea π this page lives in ./drivers/scsi, dated October 2026, and it's filed under scsi_scan_host(9) β stay scanned, stay slay, 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