stmmac_pltfr_probe(9)
π stmmac_pltfr_probe β a Kernel API Manual moment
okay so bestie, welcome to the stmmac_pltfr_probe(9) page, straight out of the Kernel API Manual β¨ this is the function that kicks off the whole platform-side probe party for the stmmac driver, and yes it's as niche as it sounds, but we're gonna understand it together π«Ά
β¨ NAME β¨
stmmac_pltfr_probe β and honestly? the original page leaves the description after the dash totally blank π so we're not gonna invent one. It's justβ¦ the name. Iconic, mysterious, no notes π
πΈ SYNOPSIS πΈ
int stmmac_pltfr_probe (struct platform_device *pdev , struct
plat_stmmacenet_data *plat , struct stmmac_resources *res );
so it returns an int (iykyk, that's the classic kernel "0 or bust" situation) and it takes three things. let's meet them π
π ARGUMENTS π
pdevβ the platform device pointer π¦ like, the device we're probing, in pointer form.platβ the driver data platform structure. yes it's calledplat. yes it's the platform struct. we love a short name.resβ the stmmac resources structure. the resources!! the good stuff π
π₯ DESCRIPTION π₯
okay so what does it actually do? literally this: it calls the platform's init callback and then probes the stmmac driver. that's the whole vibe. init callback gets called, stmmac gets probed, main character energy all around π
no cap, that's the entire description in the original, so that's the entire description here too. short and slay β¨
π SEE ALSO π
first up, the file this whole thing lives in:
- Kernel file
./drivers/net/ethernet/stmicro/stmmac/stmmac_platform.cπ
and then the whole friend group of related functions, all of them, no skipping π«Ά
dwmac1000_validate_mcast_bins(9)dwmac1000_validate_ucast_entries(9)stmmac_axi_setup(9)stmmac_mtl_setup(9)stmmac_of_get_mdio(9)stmmac_mdio_setup(9)stmmac_of_get_mac_mode(9)stmmac_probe_config_dt(9)devm_stmmac_probe_config_dt(9)stmmac_pltfr_get_irq_array(9)stmmac_pltfr_init(9)stmmac_pltfr_exit(9)devm_stmmac_pltfr_probe(9)stmmac_pltfr_remove(9)
like, the whole probe-to-remove lifecycle is right there. a little family reunion ππ
ngl bestie, if you're poking at stmmac platform probing, read the friends above too β they're all in the samestmmac_platform.cneighborhood and they all come as(9)man pages π§
and that's the page!! π cute little sign-off for you: this one's sourced from ./drivers/net/ethernet/stmicro... and dated October 2026, and the page itself is stmmac_pltfr_probe(9) β go probe something, bestie, and slay π
β¨
π¦ 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