__pata_platform_probe(9)
π __pata_platform_probe β attach a platform interface π
okay so this is the manual page for __pata_platform_probe(9) from the Kernel API Manual, and it's literally about attaching a platform interface. bestie, it's giving "low-level glue code but make it iconic" π
β¨ NAME β¨
__pata_platform_probe β attach a platform interface
π SYNOPSIS π
int __pata_platform_probe (struct device *dev , struct resource *io_res
, struct resource *ctl_res , struct resource *irq_res , unsigned int
ioport_shift , int __pio_mask , const struct scsi_host_template *sht ,
bool use16bit );
π«Ά ARGUMENTS π«Ά
devβ the device π«Άio_resβ Resource representing I/O base β¨ctl_resβ Resource representing CTL base πirq_resβ Resource representing IRQ and its flags π₯ioport_shiftβ I/O port shift π__pio_maskβ PIO mask πΈshtβscsi_host_templateto use when registering π¦use16bitβ Flag to indicate 16-bit IO instead of 32-bit β
π DESCRIPTION π
So basically: this registers a platform bus IDE interface. Such interfaces are PIO, and we assume they do not support IRQ sharing. no cap, that's the vibe π₯
Platform devices are expected to contain at least 2 resources per port:
- I/O Base (
IORESOURCE_IOorIORESOURCE_MEM) π - CTL Base (
IORESOURCE_IOorIORESOURCE_MEM) β¨
and optionally:
- IRQ (
IORESOURCE_IRQ) β‘
If the base resources are both mem types, the ioremap is handled here. For IORESOURCE_IO, it's assumed that there's no remapping necessary. And if no IRQ resource is present, PIO polling mode is used instead. periodt π
π₯ SEE ALSO π₯
Kernel file ./drivers/ata/pata_platform.c β go read it bestie, iykyk π
mwah π this page is from the source/version spot ./drivers/ata, dated October 2026, and the manual name is __pata_platform_probe(9) β slay π
π¦ 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