__pata_platform_probe(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ __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_template to 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_IO or IORESOURCE_MEM) πŸ’–
  • CTL Base (IORESOURCE_IO or IORESOURCE_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