ata_eh_get_n...uccess_sense(9)
π ata_eh_get_n...uccess_sense(9) β like, the full glow-up
okay bestie, we're deep in the Kernel API Manual today and honestly? this one is a little niche but she serves. it's a kernel-thread-core function, no cap. let's get into it π
β¨ NAME β¨
ata_eh_get_ncq_success_sense β reads and processes the sense data for the successful NCQ commands log page π
like... she literally just goes and gets the sense data. that's her whole job. iconic.
πΈ SYNOPSIS πΈ
int ata_eh_get_ncq_success_sense (struct ata_link *link );
one function, one argument, one int coming back at ya. minimalism. main character energy fr.
π¦ ARGUMENTS π¦
linkβ the ATA link you want the sense data for. that's it. that's the whole parameter. she just needs to know which link, okay? π«Ά
π DESCRIPTION π
so what she actually does: she reads the sense data for successful NCQ commands log page β the whole point being to obtain sense data for all NCQ commands that completed successfully with the sense data available bit set. yes, successful commands can still have tea to spill, and this log page is where the tea lives. π
LOCKING: Kernel thread context (may sleep).
lowkey important: she may sleep, so do not come at her from a context where sleeping is a whole problem. kernel thread context only, bestie. π
β RETURN β
0on success π-errnootherwise π
that's the whole return contract. no surprises, no plot twists.
π SEE ALSO π
this list is long and she ate, honestly. the whole kernel file here is ./drivers/ata/libata-sata.c, and these are her neighbors:
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_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_analyze_ncq_error(9)
go read them all, iykyk π₯
and that's the page, bestie!! this little beauty lives in ./drivers/ata and she's dated October 2026 β so yeah, she's from the future, slay. mwah πβ¨
π¦ 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