radisys_init_one(9)
๐ radisys_init_one(9) โจ
ok so this is a page from the Kernel API Manual, and it's about one very specific little function. bestie, if you're here, you're probably deep in ATA driver land, and honestly? respect. let's get into it ๐ซถ
๐ธ NAME ๐ธ
radisys_init_one โ the girl whose whole job is registering a PIIX ATA PCI device with the kernel services. that's it, that's the gig ๐
๐ SYNOPSIS ๐
int radisys_init_one (struct pci_dev *pdev , const struct pci_device_id
*ent );
like, she takes two things and she gives you back an int. iconic signature tbh ๐
๐ฆ ARGUMENTS ๐ฆ
pdevโ the PCI device you're registering. the main character of this whole operation โจentโ the entry inradisys_pci_tblthat matches up withpdev. they're a matched set, iykyk ๐
๐ DESCRIPTION ๐
So this gets called from the kernel PCI layer, right? and when it runs, we probe for combined mode (sigh ๐ฎโ๐จ โ the manpage itself is sighing, not me, I'm just relaying), and then we hand over control to libata, because libata is gonna do the rest. we're just the setup girlie, not the whole show ๐ง
LOCKING: the locking is inherited from the PCI layer โ and heads up, it may sleep ๐ด so don't be out here calling it from somewhere spicy. no cap. ๐
โญ RETURN โญ
Zero on success ๐ โ or a -ERRNO value if things went sideways ๐ญ (that's a negative errno, so you know exactly what flavor of bad it was).
๐ฅ SEE ALSO ๐ฅ
- the kernel file
./drivers/ata/pata_radisys.cโ the source, go read her ๐ radisys_set_piomode(9)radisys_set_dmamode(9)radisys_qc_issue(9)
the whole friend group fr fr ๐ซถโจ
lowkey a reminder: everything here lives over in ./drivers/ata, so that's your home base bestie ๐ ๐
and that's the page!! ๐ brought to you by the ./drivers/ata source, from October 2026, in all its radisys_init_one(9) glory โ mwah, go slay your PCI probe ๐โจ๐
๐ฆ 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