ata_change_queue_depth(9)
π ata_change_queue_depth(9)
okay so this is a page from the Kernel API Manual (yes, the fancy kernel docs, we love her) and it's all about ata_change_queue_depth β the little helper that sets a device's maximum queue depth. short page, but she ate. let's get into it π«Ά
β¨ NAME β¨
ata_change_queue_depth β set a device maximum queue depth π
πΈ SYNOPSIS πΈ
int ata_change_queue_depth (struct ata_port *ap , struct scsi_device
*sdev , int queue_depth );
like, that's the whole signature. three args, one int coming back at you. nothing more, nothing less. periodt. β¨
π¦ ARGUMENTS π¦
apβ the ATA port of the target device π that's yourstruct ata_port *, the port we're messing with.sdevβ the SCSI device we're configuring the queue depth for π it's astruct scsi_device *, don't get it twisted.queue_depthβ the new queue depth π the actual number, anint, that's literally the whole point of calling this.
π DESCRIPTION π
so this is a helper β a little guy whose entire job is to set a device's maximum queue depth. that's it, that's the function. π§
the cute part? it's usable with both libsas and libata, so she's flexible, she's versatile, she's main character energy in two subsystems at once. ngl, iconic. π₯
β SEE ALSO β
okay bestie, buckle up, because this is the long part β the kernel file is ./drivers/ata/libata-sata.c, and the related functions are:
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_scsi_change_queue_depth(9)ata_sas_sdev_configure(9)ata_sas_queuecmd(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 the whole squad, no cap β go read them if you want the full lore ππ
aaaaand that's the page!! short and sweet, fr fr. this masterpiece lives under ./drivers/ata and it's dated October 2026, so mark your calendars bestie πβ¨π
π¦ 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