ata_sas_queuecmd(9)
β¨ 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:
sata_scr_valid(9)sata_scr_read(9)sata_scr_write(9)sata_scr_write_flush(9)ata_tf_to_fis(9)ata_tf_from_fis(9)sata_link_debounce(9)sata_link_resume(9)sata_link_scr_lpm(9)sata_set_spd_needed(9)sata_set_spd(9)sata_down_spd_limit(9)sata_link_hardreset(9)sata_std_hardreset(9)ata_qc_complete_multiple(9)ata_slave_link_init(9)sata_lpm_ignore_phy_events(9)ata_ncq_prio_supported(9)ata_ncq_prio_enabled(9)ata_ncq_prio_enable(9)ata_change_queue_depth(9)ata_scsi_change_queue_depth(9)ata_sas_sdev_configure(9)sata_async_notification(9)ata_eh_read_log_10h(9)ata_eh_get_ncq_success_sense(9)ata_eh_analyze_ncq_error(9)
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
- 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