ata_scsi_user_scan(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

okay bestie, pull up a chair β€” this is ata_scsi_user_scan(9) from the Kernel API Manual, and it's giving β€œsmall but useful kernel helper” ✨. The function name is ata_scsi_user_scan, and the official NAME one-liner is: indication for user-initiated bus scan. No cap. 🫢

✨ SYNOPSIS ✨

int ata_scsi_user_scan (struct Scsi_Host *shost , unsigned int channel , unsigned int id , u64 lun );

🌸 ARGUMENTS 🌸

okay, the cast of characters is short and iconic:

  • shost β€” SCSI host to scan. This is the host you're scanning, bestie. 🫢
  • channel β€” Channel to scan. Lowkey straightforward. ✨
  • id β€” ID to scan. πŸ’…
  • lun β€” LUN to scan. πŸŽ€

πŸ¦‹ DESCRIPTION πŸ¦‹

so the actual trigger is: this function is called when user explicitly requests bus scan. That's the explicit user-scan moment, fr fr. Then the original says, verbatim: Set probe pending flag and invoke EH. That's it β€” that's the whole description. 😭

LOCKING: SCSI layer (we don't care) β€” yes, that's literally the note. The SCSI layer is the locking context, and the official stance is β€œwe don't care.” πŸ’…

πŸŽ€ RETURN πŸŽ€

Zero. That's the return value, periodt. No dramatic twist, no secret extra return, just zero. πŸ’€

πŸ”₯ SEE ALSO πŸ”₯

the related-functions group chat is long and iconic β€” every single one, in the original order:

that's the whole SEE ALSO squad, bestie πŸ’–

xoxo, your ata_scsi_user_scan(9) bestie πŸ’… β€” source/version: ./drivers/ata, date: October 2026 πŸŽ€

πŸ“¦ where this page comes from