ata_sff_softreset(9)
πΈ ata_sff_softreset πΈ
okay so welcome to the Kernel API Manual, bestie β yes, the whole manual name, we're folding it in right here at the top because we're classy like that π
. This page is all about ata_sff_softreset, and honestly? she's giving "quietly resets your entire host port" main character energy and I need you to respect it.
β¨ NAME β¨
ata_sff_softreset β reset host port via ATA SRST. that's it, that's the vibe π
π¦ SYNOPSIS π¦
int ata_sff_softreset (struct ata_link *link , unsigned int *classes ,
unsigned long deadline );
look at her. three args. no cap, she's iconic.
π ARGUMENTS π
linkβ the ATA link you're resetting. like, the actual thing. the star of the show πclassesβ the resulting classes of attached devices get dropped in here, so it's an output situation fr frdeadlineβ the deadline jiffies for the operation. yes, jiffies. that's the unit. that's just how kernel time works, don't @ me β°
π₯ DESCRIPTION π₯
Reset host port using ATA SRST. short, sweet, does exactly what it says on the tin β¨
LOCKING: Kernel thread context (may sleep)
π«Ά real talk: that "may sleep" is not decor, bestie β it means you gotta be in kernel thread context, so don't be out here calling her from somewhere spicy. she naps. respect the nap. π΄
β RETURN β
0 on success, -errno otherwise. so like β zero means slay, negative means something went sideways and the errno tells you which flavour of sideways π
π SEE ALSO π
Kernel file ./drivers/ata/libata-sff.c β that's where she lives, go say hi π¦
and then the entire squad, because apparently we're doing the full roll call and I am obsessed with the commitment:
ata_sff_check_status(9)ata_sff_altstatus(9)ata_sff_irq_status(9)ata_sff_sync(9)ata_sff_pause(9)ata_sff_dma_pause(9)ata_sff_wait_ready(9)ata_sff_set_devctl(9)ata_sff_dev_select(9)ata_dev_select(9)ata_sff_irq_on(9)ata_sff_tf_load(9)ata_sff_tf_read(9)ata_sff_exec_command(9)ata_tf_to_host(9)ata_sff_data_xfer(9)ata_sff_data_xfer32(9)ata_pio_sector(9)ata_pio_sectors(9)atapi_send_cdb(9)__atapi_pio_bytes(9)atapi_pio_bytes(9)ata_hsm_ok_in_wq(9)ata_hsm_qc_complete(9)ata_sff_hsm_move(9)ata_sff_qc_issue(9)ata_sff_qc_fill_rtf(9)ata_sff_port_intr(9)ata_sff_interrupt(9)ata_sff_lost_interrupt(9)ata_sff_freeze(9)ata_sff_thaw(9)ata_sff_prereset(9)ata_devchk(9)ata_sff_dev_classify(9)ata_sff_wait_after_reset(9)sata_sff_hardreset(9)ata_sff_postreset(9)ata_sff_drain_fifo(9)ata_sff_error_handler(9)ata_sff_std_ports(9)ata_pci_sff_init_host(9)ata_pci_sff_prepare_host(9)ata_pci_sff_activate_host(9)ata_pci_sff_init_one(9)ata_bmdma_fill_sg(9)ata_bmdma_fill_sg_dumb(9)ata_bmdma_qc_prep(9)ata_bmdma_dumb_qc_prep(9)ata_bmdma_qc_issue(9)ata_bmdma_port_intr(9)ata_bmdma_interrupt(9)ata_bmdma_error_handler(9)ata_bmdma_post_internal_cmd(9)ata_bmdma_irq_clear(9)ata_bmdma_setup(9)ata_bmdma_start(9)ata_bmdma_stop(9)ata_bmdma_status(9)ata_bmdma_port_start(9)ata_bmdma_port_start32(9)ata_pci_bmdma_clear_simplex(9)ata_pci_bmdma_init(9)ata_pci_bmdma_prepare_host(9)ata_pci_bmdma_init_one(9)ata_sff_port_init(9)
like, the whole friend group showed up. ate. periodt. π₯
and that's the page!! πΈππ huge shoutout to ./drivers/ata for hosting the files, and to October 2026 for the date stamp β she's timestamped, she's documented, she's literally perfect. iykyk π§ββοΈπ
π¦ 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