ns87415_init_one(9)
π ns87415_init_one β like, the Kernel API Manual page you've been waiting for π
okay so bestie, welcome to the group chat. this is the manual page for ns87415_init_one from the Kernel API Manual, and honestly? it's giving "small function, big responsibilities" energy. let's get into it β¨
πΈ NAME πΈ
ns87415_init_one β register an 87415 ATA PCI device with kernel services. that's it, that's the whole vibe. she introduces your device to the kernel like a good mutual π
π¦ SYNOPSIS π¦
int ns87415_init_one (struct pci_dev *pdev , const struct pci_device_id
*ent );
literally copy it exactly, no cap, don't you dare retype it "cleaner" π
π ARGUMENTS π
pdevβ the PCI device you're registering. the main character, fr πentβ the entry inns87415_pci_tblthat matchespdev. her plus-one at the function call π«Ά
β¨ DESCRIPTION β¨
so this bad boy gets called from the kernel PCI layer. we probe for combined mode (sigh β yes the sigh is, like, canonically in the source, the devs were tired, we respect it π), and then we hand over control to libata so it can do the rest. not us doing the work, we're just the connector. delegation is self-care π
LOCKING: inherited from the PCI layer β which may sleep. so like, don't call it somewhere that can't nap, okay? β
π₯ RETURN π₯
Zero on success, or a -ERRNO value on the sad path. slay when zero, cry when negative π
π§ SEE ALSO π§
start with the kernel file itself: ./drivers/ata/pata_ns87415.c β the whole squad lives there:
ns87415_set_mode(9)ns87415_set_piomode(9)ns87415_bmdma_setup(9)ns87415_bmdma_start(9)ns87415_bmdma_stop(9)ns87415_irq_clear(9)ns87415_check_atapi_dma(9)ns87560_read_buggy(9)ns87560_check_status(9)ns87560_tf_read(9)ns87560_bmdma_status(9)
π every single one, we don't skip the boring ones, that's not the vibe here.
quick reminder bestie: this page lives under ./drivers/ata πΈ
okay that's the whole page, love u, bye π
signed off with love from <code>./drivers/ata</code>, dated <strong>October 2026</strong> β that's the source and the date, bestie, and yes I'm putting it in the sign-off because the footer is sacred β¨ππ
π¦ 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