ata_ncq_prio_enabled(9)
π ata_ncq_prio_enabled β it's giving "Kernel API Manual", bestie
okay so picture this: it's a kernel API manual page, the function is ata_ncq_prio_enabled(9), and it's literally just here to tell you whether NCQ Priority is enabled. that's it. that's the whole vibe. π¦
β¨ NAME β¨
ata_ncq_prio_enabled β Check if NCQ Priority is enabled
like, the name says it all, no cap. it checks the thing. π
πΈ SYNOPSIS πΈ
int ata_ncq_prio_enabled (struct ata_port *ap , struct scsi_device *sdev
, bool *enabled );
look at that signature, she's iconic π
three args, one int coming back at you.
π«Ά ARGUMENTS π«Ά
apβ ATA port of the target device. this is the port we're snooping around in, iykyk.sdevβ SCSI device. the device in question, main character energy fr.enabledβ Address of a boolean to store the result. yes bestie, you hand over the address of abooland the answer gets parked right there. π₯
π DESCRIPTION π
Helper to check if NCQ Priority feature is enabled.
literally just a helper. a little guy. a support function doing its one job and doing it slay. it's not out here changing the world, it's out here checking a feature flag for you. periodt. β¨
π§ CONTEXT π§
Any context. Takes and releases ap->lock.
so you can call this from basically anywhere, no stress β but heads up, it grabs ap->lock and then lets it go again, so mind your locking vibes. π
β RETURN β
0β OK. Status is stored intoenabled. π everything went great, the answer is chilling in your bool now.-ENODEVβ Failed to find the ATA device. π the device said "not today", couldn't locate it.
π SEE ALSO π
Kernel file ./drivers/ata/libata-sata.c β and honestly the whole friend group is tagged in, so let's shout them out:
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_enable(9)ata_change_queue_depth(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 a whole group chat right there, and every single one of them is invited. π
aaaand that's the page!! sign-off time: this masterpiece lives in ./drivers/ata, it's part of the Kernel API Manual, and it's dated October 2026. no notes. 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