xpcs_create_fwnode(9)
β¨ xpcs_create_fwnode β¨
okay so this is a page from the Kernel API Manual bestie β it's xpcs_create_fwnode(9), and it's literally the "make me a DW xPCS out of this fwnode" moment π
π NAME
xpcs_create_fwnode β spin up a DW xPCS instance from @fwnode β¨
π¦ SYNOPSIS
struct dw_xpcs * xpcs_create_fwnode (struct fwnode_handle *fwnode );
like... one function, one argument, one iconic struct pointer π
πΈ ARGUMENTS
fwnodeβ the fwnode handle that's pointing at the DW XPCS device π«Ά that's it, that's the whole input, she's low maintenance
π RETURN
so here's the vibe check on what you get back π
- a pointer to the DW XPCS handle if successful β slay, you're done π
-ENODEVif the fwnode device is unavailable, or if the PCS device couldn't be found on the bus π-EPROBE_DEFERif the respective MDIO-device instance couldn't be found β not a no, just a "not yet" bestie β- other negative errno values related to the data allocations and MDIO-bus communications π
ngl the negative errno ones are giving "something went sideways in the plumbing" β allocations and MDIO-bus comms are where they come from, no cap π
π₯ SEE ALSO
- Kernel file
./drivers/net/pcs/pcs-xpcs.cπ xpcs_config_eee_mult_fact(9)xpcs_create_mdiodev(9)
and that's the whole page, bestie β main character energy from the ./drivers/net/pcs directory, dated October 2026 π go forth and probe ur PCS devices responsibly β¨π§
π¦ 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