regmap_init_mdio(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… regmap_init_mdio(9) β€” the Kernel API Manual moment

okay so first things first, bestie: this page lives in the regmap_init_mdio(9) section of the Kernel API Manual, and it's literally just about setting up a register map. short page, big main character energy ✨


🌸 NAME 🌸

regmap_init_mdio β€” Initialise register map. that's it, that's the whole vibe πŸŽ€


✨ SYNOPSIS ✨

regmap_init_mdio (mdio_dev , config );

like, you hand it a device and a config and it does the thing. periodt πŸ’…


🫢 ARGUMENTS 🫢

  • mdio_dev β€” the Device that will be interacted with πŸ¦‹ (yes, this is the one getting the whole register-map glow-up)
  • config β€” the Configuration for register map. it's giving "here's how you should behave" πŸ“‹

πŸ‘‘ DESCRIPTION πŸ‘‘

okay so here's the tea: the return value will be an ERR_PTR on error β€” so like, check it, don't just ignore it 😭 β€” or a valid pointer to a struct regmap. those are your two options, no in-between, no delulu.

ngl bestie, if you're getting an ERR_PTR back and trying to deref it anyway, that's not slay, that's a crash πŸ’€

🌈 SEE ALSO 🌈

the whole friend group, in order, no cap:

Kernel file ./include/linux/regmap.h


and that's the whole page, bestie β€” obsessed with how short it is fr fr 🧚

this little cutie is filed under ./include/linux, dated October 2026, and it's literally the regmap_init_mdio(9) of the Kernel API Manual. go forth and init your register maps, queen πŸ‘‘πŸ’–

πŸ“¦ where this page comes from