ata_sas_queuecmd(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ ata_sas_queuecmd ✨

okay so bestie, welcome to the ata_sas_queuecmd page from the Kernel API Manual πŸ’… this one is short and sweet β€” like, it's literally a "hand off your SCSI command to libata" situation and honestly that's the whole vibe πŸ¦‹


🌸 NAME 🌸

ata_sas_queuecmd β€” issue SCSI cdb to libata-managed device πŸ‘‘

like, you have a SCSI command descriptor block, the device is managed by libata, and this is the function that ships it over. no cap πŸ’–


πŸŽ€ SYNOPSIS πŸŽ€

int ata_sas_queuecmd (struct scsi_cmnd *cmd , struct ata_port *ap );

that's it, that's the whole signature, and yes she returns an int πŸ’…


🫢 ARGUMENTS 🫢

  • cmd β€” the SCSI command to be sent πŸ“¨ like, the actual cdb you're trying to get out the door.
  • ap β€” the ATA port to which the command is being sent πŸ”₯ this is the destination port, bestie.

⭐ RETURN ⭐

She gives you back the return value from __ata_scsi_queuecmd if cmd can be queued β€” and if it can't? you get 0 🫠 that's the whole deal, no secret lore here.

ngl the distinction is the entire personality of this function: queued β†’ that inner return value, otherwise β†’ 0. don't mix them up 😭

πŸ¦‹ SEE ALSO πŸ¦‹

and now, the iconic friend group πŸ’– all of these live in the kernel file ./drivers/ata/libata-sata.c and honestly, they're all invited to the group chat:

that's twenty-seven, bestie, I counted, and every single one is here 🌈


and that's the page!! short king, but she ate πŸ’… remember: cmd goes in, ap is where it's heading, and the return is either __ata_scsi_queuecmd's value or 0. periodt πŸŽ€

cute little sign-off: this gem lives under ./drivers/ata, stamped October 2026, and it's part of the Kernel API Manual β€” so go queue some commands, icon, and slay πŸ§šπŸ’œ

πŸ“¦ where this page comes from