scsi_complete_async_scans(9)
π scsi_complete_async_scans β wait for async scans, bestie
okay so this is scsi_complete_async_scans, straight out of the Kernel API Manual (yes, that's the manual name, we're fancy now π). It's a little sync-point function and honestly it's giving "wait for your friends to finish getting ready" energy. Let's get into it π
β¨ NAME β¨
scsi_complete_async_scans β wait for asynchronous scans to complete π«Ά
πΈ SYNOPSIS πΈ
int scsi_complete_async_scans (void );
π ARGUMENTS π
voidβ no arguments. zero. nada. not a single one. she takes nothing and she's thriving π
π¦ DESCRIPTION π¦
so here's the vibe: by the time this function returns, any host which started scanning before this function was called will have finished its scan. periodt. those hosts? done. scanned. complete β¨
but β and this is the important part, don't skip it π β hosts which started scanning after this function was called may or may not have finished. may. or. may. not. it's giving "no promises" π so like, don't assume a host that jumped in late is chill, because she might still be scanning her little heart out.
ngl this is a race-y little detail so keep it in mind: the guarantee only covers scans that kicked off before the call. later ones are a total vibe check of their own π
π SEE ALSO π
kernel file ./drivers/scsi/scsi_scan.c β and like, the whole squad of related functions, all of them, here we go π§:
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_scan_host(9)scsi_get_pseudo_sdev(9)
and that's the whole page, bestie!! π mwah π
sign-off time β: this little icon lives in ./drivers/scsi, it's dated October 2026, and it's page scsi_complete_async_scans(9) of the Kernel API Manual. go forth and wait for your scans πβ¨π¦
π¦ 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