radisys_init_one(9)

๐Ÿ“ฆ version 7.3.1, in nixpkgs unstable

๐Ÿ’… 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 in radisys_pci_tbl that matches up with pdev. 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 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