via_init_one(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– via_init_one(9) πŸ’–

okay so bestie, welcome to the Kernel API Manual β€” this one's a lil discovery callback from the pata_via corner of the kernel, and honestly? it's giving "first day of school energy" 🌸


✨ NAME ✨

via_init_one β€” the discovery callback πŸŽ€ (yes that's literally all it says, she's mysterious, iykyk)


πŸ¦‹ SYNOPSIS πŸ¦‹

int via_init_one (struct pci_dev *pdev , const struct pci_device_id *id
);

like… she takes two args and returns an int, periodt πŸ’…


🌈 ARGUMENTS 🌈

  • pdev β€” the PCI device 🫢 (your main character, fr)
  • id β€” the PCI table info ⭐ (all the deets from the match table)

πŸ”₯ DESCRIPTION πŸ”₯

So a VIA IDE interface has been discovered πŸŽ‰. The job here is to figure out what revision it is and do the configuration work β€” all before handing it over to the ATA layer. Like doing your hair and makeup before you walk out the door, no cap πŸ’β€β™€οΈβœ¨


πŸ‘‘ SEE ALSO πŸ‘‘

go read the whole squad, they're all iconic πŸ’œ


and that's the whole page bestie!! πŸ§šβ€β™€οΈ this lil gem lives in ./drivers/ata and the version stamp is October 2026 β€” so yeah, future-dated slay πŸ’€πŸŽ€ bye!! πŸ“

πŸ“¦ where this page comes from