it8213_init_one(9)
π it8213_init_one(9) β like, the whole glow-up
okay so bestie, welcome to the Kernel API Manual page for it8213_init_one π yes that's the manual name, it's giving "niche but iconic", and we're about to make it make sense.
β¨ NAME β¨
it8213_init_one β register an 8213 ATA PCI device with kernel services π¦
likeβ¦ you hand the kernel a shiny new ATA PCI device and it goes "ok bestie, you're officially on the list" π
πΈ SYNOPSIS πΈ
int it8213_init_one (struct pci_dev *pdev , const struct pci_device_id
*ent );
that's the whole signature, no cap β int coming back at you, two pointer args going in π«Ά
π§ ARGUMENTS π§
pdevβ the PCI device to register π this is the main character of the operation, the thing that's actually getting signed up.entβ an entry init8213_pci_tblthat matches withpdevπ₯ so like, the matching ID row that says "yep, this device belongs here".
π DESCRIPTION π
Called from the kernel PCI layer β¨ that's it, that's the vibe β the kernel does the calling, not you, so don't come for this function's neck about how it got invoked.
LOCKING: inherited from the PCI layer (may sleep) π΄ so like, don't be out here holding it in a spinlock-y context, it's allowed to nap, periodt.
π RETURN π
Zero on success π or an -ERRNO value if it didn't slay π (negative errno, iykyk β the kernel's way of saying "couldn't, sorry").
π SEE ALSO π
- Kernel file
./drivers/ata/pata_it8213.cβ the home base, the source of truth π it8213_pre_reset(9)βit8213_cable_detect(9)πit8213_set_piomode(9)πit8213_set_dmamode(9)π₯
okay that's the whole page, you ate that π
mwah π«Ά β this little icon lives in ./drivers/ata, dated October 2026, and that's the sign-off bestie, go register some devices β¨π
π¦ 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