efar_init_one(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… efar_init_one(9) β€” a Kernel API Manual moment ✨

okay so before we even get into it: this is from the Kernel API Manual, section 9, and the whole vibe is "we're registering a PCI device and being very normal about it" πŸŽ€


🌸 NAME 🌸

efar_init_one β€” the function that registers an EFAR ATA PCI device with kernel services, bestie. that's literally her whole job πŸ’…


✨ SYNOPSIS ✨

int efar_init_one (struct pci_dev *pdev , const struct pci_device_id *ent );

like, she takes two pointers and gives you back an int. simple. iconic. no cap 🫢


πŸ¦‹ ARGUMENTS πŸ¦‹

  • pdev β€” the PCI device you're registering, bestie. this is the main character of the whole operation πŸ’–
  • ent β€” the entry in efar_pci_tbl that matches up with pdev. they're a matched set, fr fr πŸŽ€

πŸ”₯ DESCRIPTION πŸ”₯

so this one gets called from the kernel PCI layer. that's it, that's the tea β˜• the PCI layer is the one doing the calling, not you, so don't come for her 🌸

LOCKING: the locking here is inherited from the PCI layer, and heads up β€” it may sleep πŸ˜΄πŸ’€ so don't go calling this from somewhere spicy where sleeping is not allowed. that's a whole situation you do not want.


⭐ RETURN ⭐

  • Zero on success πŸŽ‰ slay, she worked
  • or a -ERRNO value 😭 which means something went sideways, and the errno will tell you what

πŸ‘‘ SEE ALSO πŸ‘‘

the whole efar friend group, honestly 🫢✨


and that's the page, bestie πŸ’œ this one lives down in ./drivers/ata, dated October 2026, version vibes and all β€” mwah, go register some devices responsibly πŸŒˆπŸŽ€

πŸ“¦ where this page comes from