mdiobus_alloc_size(9)
π 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, thenbus->privis 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 meansbus->privpoints 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:
mdiobus_release(9)mdio_bus_match(9)mdiobus_scan_c22(9)mdiobus_scan_c45(9)__mdiobus_register(9)mdiobus_free(9)mdio_find_bus(9)of_mdio_find_bus(9)
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
- 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