hpt370_filter(9)
π hpt370_filter(9) β your girl's guide to the mode selection filter
okay so hi bestie π«Ά welcome to the Kernel API Manual, specifically the page for hpt370_filter(9). it's a tiny one, but it's important, i promise. like, small but mighty. main character energy in a four-line function, fr fr.
β¨ NAME β¨
hpt370_filter β the mode selection filter. that's it. that's the job. she filters. she selects modes. she slays π
πΈ SYNOPSIS πΈ
unsigned int hpt370_filter (struct ata_device *adev , unsigned int mask
);
yes the signature is literally formatted exactly like that in the original, and yes we are keeping it exactly like that, no cap. character for character, babe. π
π¦ ARGUMENTS π¦
adevβ an ATA device. that's the thing we're looking at πmaskβ the mode mask. the mask of modes. the mode-y mask. iconic.
π DESCRIPTION π
okay so here's the whole vibe: this function blocks UDMA on devices that cause trouble with this controller. that's it. that's the entire plot.
like, some devices are messy with this controller β not their fault, we don't judge β and so this filter steps in and says "nope, no UDMA for you, sweetie" π and that's genuinely the whole thing.
no extra lore, bestie. the manpage gives us one sentence and we are respecting it. don't @ me.
π₯ SEE ALSO π₯
go check out the kernel file ./drivers/ata/pata_hpt37x.c β that's where the magic lives β¨
and then the whole friend group:
hpt37x_find_mode(9)hpt370a_filter(9)hpt372_filter(9)hpt37x_cable_detect(9)hpt374_fn1_cable_detect(9)hpt37x_pre_reset(9)hpt37x_set_piomode(9)hpt37x_set_dmamode(9)hpt370_bmdma_stop(9)hpt37x_bmdma_stop(9)hpt37x_clock_slot(9)hpt37x_calibrate_dpll(9)hpt37x_init_one(9)
like, the whole hpt37x extended universe, honestly. read them all. iykyk π
and that's the page!! π«Ά sourced from ./drivers/ata, dated October 2026, titled hpt370_filter(9), part of the Kernel API Manual β mwah, love that for us πβ¨ go forth and filter those modes, bestie π§ββοΈ
π¦ 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