phy_read_paged(9)
π phy_read_paged(9) β the kernel API manual, but make it make sense π
okay so this is a page from the kernel API manual (section 9, the function-page girlies β¨) and honestly? it's short, it's sweet, and it does exactly one thing. let's get into it π«Ά
πΈ NAME πΈ
phy_read_paged β the convenience function for reading a paged register. that's it, that's the whole vibe. it's giving "shortcut so you don't have to do the page dance yourself" π
β¨ SYNOPSIS β¨
int phy_read_paged (struct phy_device *phydev , int page , u32 regnum );
like, look at her. three args, returns an int, no notes. iconic π
π ARGUMENTS π
phydevβ a pointer to astruct phy_device. your phy bestie. you gotta hand her over πpageβ the page for the phy. yeah. the page. for the phy. that's the whole description, i don't make the rules π¦regnumβ register number, aka which register you're trying to peek at π
π§ DESCRIPTION π§
Same rules as for phy_read. periodt. that's genuinely all it says β so if you know how phy_read behaves, you already know how this one behaves, no cap πβ¨
π SEE ALSO π
the kernel file ./drivers/net/phy/phy-core.c is where all this lives, and here's the whole friend group β every single one of them, i'm not skipping a single bestie π€:
phy_speed_to_str(9)phy_duplex_to_str(9)phy_rate_matching_to_str(9)phy_fix_phy_mode_for_mac_delays(9)phy_interface_num_ports(9)phy_set_max_speed(9)of_set_phy_timing_role(9)phy_resolve_aneg_pause(9)phy_resolve_aneg_linkmode(9)phy_check_downshift(9)__phy_read_mmd(9)phy_read_mmd(9)__phy_write_mmd(9)phy_write_mmd(9)phy_modify_changed(9)__phy_modify(9)phy_modify(9)__phy_modify_mmd_changed(9)phy_modify_mmd_changed(9)__phy_modify_mmd(9)phy_modify_mmd(9)phy_save_page(9)phy_select_page(9)phy_restore_page(9)phy_write_paged(9)phy_modify_paged_changed(9)phy_modify_paged(9)
like, that's a full group chat right there. the paged-register crew, the mmd crew, the modify crew β all mutually obsessed π«Άπ
ngl bestie, this one's a "read the docs for phy_read first" situation. this page literally tells you to. respect the lore π
and that's the page!! sign-off time: this lives in ./drivers/net/phy, it's dated October 2026, and it's from the kernel API manual section 9. mwah, go read a register, slay πππΈ
π¦ 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