ata_scsi_simulate(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

okay bestie, welcome to ata_scsi_simulate(9) from the Kernel API Manual πŸ’– this is the page where a SCSI command gets simulated on an ATA device, and yes it’s giving very β€œkernel internals but make it iconic” energy ✨

πŸ’– NAME πŸ’–

ata_scsi_simulate β€” simulate a SCSI command on an ATA device πŸ¦‹

✨ SYNOPSIS ✨

void ata_scsi_simulate (struct ata_device *dev , struct scsi_cmnd *cmd
);

πŸŽ€ ARGUMENTS πŸŽ€

  • dev β€” the target device, aka the device we’re aiming at πŸ‘‘
  • cmd β€” the SCSI command being sent to the device, literally the command in question πŸ’…

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so here’s the vibe: this function interprets and directly executes a select list of SCSI commands that can be handled internally. no cap, that’s the whole little mission statement 🫢

πŸ”’ LOCKING πŸ”’

the locking note is: spin_lock_irqsave(host lock) πŸ”₯ keep that locked and loaded, bestie.

🌈 SEE ALSO 🌈

go off and read these referenced besties if you’re spiraling down the kernel rabbit hole 🧚✨

πŸŽ€ cute little footer vibe: source/version is ./drivers/ata, and the date is October 2026. mwah πŸ’‹
πŸ“¦ where this page comes from