marvell_init_one(9)
π marvell_init_one(9) π
okay so bestie, welcome to the Kernel API Manual β yes that's the manual name, and yes it's serving serious documentation energy. this one's about marvell_init_one, and it's lowkey the moment your Marvell ATA PCI device gets introduced to the kernel like "hey king, meet everybody" π
β¨ NAME β¨
marvell_init_one β Register Marvell ATA PCI device with kernel services π¦
like, it's literally the registration era of the device's life. the glow-up where the kernel finally knows it exists π
πΈ SYNOPSIS πΈ
int marvell_init_one (struct pci_dev *pdev , const struct pci_device_id
*id );
that's the whole signature, no cap. returns an int, takes a struct pci_dev * and a const struct pci_device_id *, and she's done π
π§ ARGUMENTS π§
pdevβ the PCI device to register. this is the main character of the function, fr fr πidβ the PCI device ID. the little name tag that says which device we're dealing with π·οΈ
π₯ DESCRIPTION π₯
Called from kernel PCI layer.
that's it, that's the vibe β the PCI layer calls her, she does her thing, everyone moves on. no need to overthink it, bestie π
LOCKING: Inherited from PCI layer (may sleep).
β οΈ okay so this one matters: the locking is inherited from the PCI layer, and it may sleep. so like, don't be out here calling it from somewhere that can't handle a lil nap, iykyk π
β RETURN β
Zero on success, or -ERRNO value.
translation: 0 means slay, everything's fine π anything negative-errno-shaped means something went sideways and the errno is telling you what. read it, don't ignore it π«Ά
π SEE ALSO π
- Kernel file
./drivers/ata/pata_marvell.c marvell_pata_active(9)marvell_pre_reset(9)
go read the source, it's giving iconic β¨ the related functions are right there too, so no excuses π
and that's the page, bestie π this one's from ./drivers/ata, dated October 2026 β so like, mark your calendar, mwah π
π¦ 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