via_init_one(9)
π 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 π
- Kernel file
./drivers/ata/pata_via.cπ via_cable_detect(9)via_do_set_mode(9)via_mode_filter(9)via_tf_load(9)via_config_fifo(9)via_reinit_one(9)
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
- 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