ata_ncq_prio_enabled(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 a bool and 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 into enabled. πŸŽ‰ 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:

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