ata_eh_read_log_10h(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– ata_eh_read_log_10h(9) β€” the libata NCQ error-detective era πŸ’–

okay bestie, gather round, because we're diving into Kernel API Manual territory and this one is genuinely such a specific little slay 🫢 It lives in the kernel file ./drivers/ata/libata-sata.c, so you already know it's ATA business. Let's get into it ✨


🌸 NAME 🌸

ata_eh_read_log_10h β€” literally just: read log page 10h for NCQ error details. that's the whole vibe, no notes πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

int ata_eh_read_log_10h (struct ata_device *dev , int *tag , struct
ata_taskfile *tf );

so it hands you back an int, and it takes three things: a struct ata_device *dev, an int *tag, and a struct ata_taskfile *tf. note the cute little signature formatting β€” int *tag , with the space before the comma, that's just how the page wrote it, we don't touch ✨


πŸŽ€ ARGUMENTS πŸŽ€

  • dev β€” the device we're reading log page 10h from. like, this is the one we're interviewing about what went wrong πŸ‘‘
  • tag β€” where the resulting tag of the failed command gets dropped off. output param energy πŸ’–
  • tf β€” where the resulting taskfile registers of the failed command land. also output, also iconic 🌟

πŸ’œ DESCRIPTION πŸ’œ

Read log page 10h to obtain NCQ error details and clear error condition. that's it, that's the job β€” you go get the tea from log page 10h, you find out what the NCQ error actually was, and you clear that error condition so we can all move on with our lives 🧚

LOCKING: Kernel thread context (may sleep). ngl this matters so much β€” you may sleep here, so don't you dare call it from somewhere spicy like an atomic context 😭 it's giving "know where you're allowed to be" energy.

πŸ”₯ RETURN πŸ”₯

0 on success, -errno otherwise. classic. zero means slay, negative errno means something went sideways and you get to go read the errno like a little detective πŸ•΅οΈβ€β™€οΈ


🌈 SEE ALSO 🌈

bestie the SEE ALSO section is long and honestly every single one of these deserves its own moment, so buckle up πŸ’€ All of these live in the kernel file ./drivers/ata/libata-sata.c:

twenty-seven entries. twenty-seven!! not me counting. okay I counted 😭 it's a whole friendship group and ata_eh_read_log_10h is like, adjacent to all of them 🫢


πŸ’« cute little sign-off πŸ’«

this page is from the ./drivers/ata corner of the kernel, and it was dated October 2026 β€” yes, future-dated, main character energy fr fr ⭐ so go read your log page 10h, get your NCQ error details, clear that error condition, and remember: 0 on success, -errno otherwise. periodt. πŸ’–πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from