fiber_lpa_mo...nkmode_lpa_t(9)
π fiber_lpa_mod_linkmode_lpa_t(9) β Kernel API Manual, bestie edition π
okay so picture this: you're deep in the kernel, you're in the 9 section of the manual (that's the Kernel API Manual, iykyk), and the page title is literally fiber_lpa_mo...nkmode_lpa_t(9) because that NAME field was too long for the header and got folded like a fresh laundry pile. iconic behaviour honestly. anyway. let's get into it π¦
β¨ NAME β¨
fiber_lpa_mod_linkmode_lpa_t β
(yes that's it, that's the whole name, the original trailing dash is part of the vibe, she's mysterious, she's giving main character energy π)
πΈ SYNOPSIS πΈ
void fiber_lpa_mod_linkmode_lpa_t (unsigned long *advertising , u32 lpa
);
that's the whole signature, no cap. takes two things, returns nothing (void, she gives nothing and that's her right π
).
π«Ά ARGUMENTS π«Ά
advertisingβ the linkmode advertisement settings, fr fr. this is theunsigned long *pointer, she's the one getting modified in place. handle with care bestie πlpaβ the value of theMII_LPAregister for fiber link. that's au32, that's your raw input, that's the tea π
π₯ DESCRIPTION π₯
okay so lowkey the whole thing is: it's a tiny lil helper function π§ that translates MII_LPA bits into linkmode LP advertisement settings. that's the job. that's what she does. and the way that she does it β she only touches the bits she's supposed to π.
here's the important part, don't skip it: other bits in advertising are left unchanged. highkey crucial. she's respectful of boundaries, she does not go rummaging through bits that aren't hers π. periodt.
π SEE ALSO π
- Kernel file
./drivers/net/phy/marvell.c linkmode_adv_to_fiber_adv_t(9)marvell_config_aneg_fiber(9)
go read those next, bestie, they're literally in the same file, it's giving a little family reunion π
β and that's the page!! source lives in ./drivers/net/phy, dated October 2026, and the footer still spells out fiber_lpa_mo...nkmode_lpa_t(9) one more time because she's consistent. mwah π slay, you now understand this function. go touch some link bits 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