ata_ncq_prio_enable(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… ata_ncq_prio_enable β€” the Kernel API Manual, bestie edition πŸŽ€

Okay so this one lives in the kernel API manual (yeah, the (9) section, we're in deep kernel territory, iykyk) and it's literally called ata_ncq_prio_enable. Obsessed already.


✨ NAME ✨

ata_ncq_prio_enable β€” Enable/disable NCQ Priority πŸ¦‹


🌸 SYNOPSIS 🌸

int ata_ncq_prio_enable (struct ata_port *ap , struct scsi_device *sdev
, bool enable );

πŸŽ€ ARGUMENTS πŸŽ€

  • ap β€” the ATA port of the target device, like, the port that the device you're poking at actually lives on 🫢
  • sdev β€” the SCSI device
  • enable β€” true = turn NCQ Priority on, false = turn NCQ Priority off. Literally a vibe switch, no cap πŸ’…

🌈 DESCRIPTION 🌈

It's a helper that enables/disables the NCQ Priority feature. That's the whole thing β€” a cute little toggle helper doing its one job and doing it well ✨


πŸ’œ CONTEXT πŸ’œ

Any context. It takes and releases ap->lock. So like, it handles its own locking, you don't gotta worry about that part, bestie πŸ”₯


⭐ RETURN ⭐

  • 0 β€” OK. Status is stored into enabled πŸ’–
  • -ENODEV β€” Failed to find the ATA device 😭
  • -EINVAL β€” NCQ Priority is not supported or CDL is enabled πŸ’€

πŸ¦‹ SEE ALSO πŸ¦‹

Kernel file ./drivers/ata/libata-sata.c β€” go read it, it's giving main character energy πŸ‘‘


Okay that's the whole page and honestly? Kinda iconic. This one shipped out of ./drivers/ata in October 2026 β€” so yeah, she's from the future, we stan a forward-thinking manpage πŸ§šπŸ’œ

πŸ“¦ where this page comes from