stmmac_pci_probe(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… stmmac_pci_probe(9) β€” your fave Kernel API Manual entry, bestie ✨

Okay so this is stmmac_pci_probe(9) from the Kernel API Manual, and it is giving β€œPCI probe but make it a whole moment” πŸ”₯

πŸ“› NAME πŸ“›

stmmac_pci_probe β€” the original leaves the one-line description blank, and honestly? Mysterious. Iconic. No notes πŸ’…

✨ SYNOPSIS ✨

int stmmac_pci_probe (struct pci_dev *pdev , const struct pci_device_id
       *id );

πŸŽ€ ARGUMENTS πŸŽ€

  • pdev β€” pci device pointer. Literally the device pointer bestie 🫢
  • id β€” pointer to table of device id/id's. The matchy-matchy list, periodt πŸ’–

πŸ”₯ DESCRIPTION πŸ”₯

Okay so this probing function gets called for all PCI devices which match the ID table and are not β€œowned” by other driver yet. It gets passed a struct pci_dev * for each device whose entry in the ID table matches the device.

The probe function returns zero when the driver chooses to take β€œownership” of the device, or an error code (-ve no) otherwise. That's the whole plot 😭✨

🌈 SEE ALSO 🌈

  • Kernel file ./drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c πŸ‘‘
  • stmmac_pci_remove(9) β€” the remove counterpart, iykyk πŸ¦‹

And that's the cute lil sign-off: this is the Kernel API Manual, stmmac_pci_probe(9), source path ./drivers/net/ethernet/stmicro..., dated October 2026. Bye bestie, go be the main character of PCI probing πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from