mdiobus_alloc_size(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

mdiobus_alloc_size β€” bestie, this is the one that allocates a mii_bus structure ✨

So like, the manual is the "Kernel API Manual" and the function is mdiobus_alloc_size, and it's the little allocator that could 🫢


✨ SYNOPSIS ✨

struct mii_bus * mdiobus_alloc_size (size_t size );

That's the whole vibe check right there πŸ‘‘


πŸŽ€ ARGUMENTS πŸŽ€

  • size β€” the extra amount of memory you wanna allocate for private storage 🧺 Like, if it's non-zero, then bus->priv is points to that memory. (Yes, the original says "is points to" β€” I'm not gonna lie, that's giving typo core πŸ’€ but I refuse to change a single character of the facts. It means bus->priv points at that memory, iykyk.)

🌸 DESCRIPTION 🌸

Okay so picture this: a bus driver is like "bestie I need a mii_bus structure to fill in" and this function is what gets called to allocate one πŸ’… That's it. That's the whole job. Iconic honestly.


πŸ¦‹ SEE ALSO πŸ¦‹

Go poke around in the kernel file ./drivers/net/phy/mdio_bus_provider.c β€” that's where the lore lives πŸ“‚

And also go say hi to the whole friend group:


Ngl this one is short and sweet β€” no warnings, no deprecated nonsense, no exit statuses. Just allocate, fill in, slay. 🌈

And that's the tea, babes πŸ“ This page lives in ./drivers/net/phy, dated October 2026, and it's literally titled mdiobus_alloc_size(9) β€” go off, kernel docs πŸ’œβœ¨

πŸ“¦ where this page comes from