phy_get_pause(9)
π phy_get_pause(9) β from the Kernel API Manual, bestie β¨
okay so picture this: it's a (9) man page, section 9, kernel API territory, and the star of the show is phy_get_pause. it's giving "small function, huge responsibility" and honestly? we're obsessed. π
πΈ NAME πΈ
phy_get_pause β the girl whose whole job is resolving negotiated pause modes. that's it, that's the gig. no cap. β¨
π¦ SYNOPSIS π¦
void phy_get_pause (struct phy_device *phydev , bool *tx_pause , bool
*rx_pause );
like, look at her. three params, returns nothing, zero drama. main character energy fr fr π
π ARGUMENTS π
phydevβ thephy_devicestruct in question. your actual phy device, your little guy, your blorbo. π«Άtx_pauseβ a pointer to aboolthat says whether transmit pause should be enabled. yes bestie, it's a pointer β you're getting the answer back through it, not handing one in. πrx_pauseβ same deal but for receive pause. pointer to abool, tells you whether receive pause should be enabled. two bools, two pointers, one vibe check. β
π DESCRIPTION π
so what does she actually do? phy_get_pause resolves and returns the flow control modes based on the negotiation result. that's the whole thing β the negotiation happened, and now somebody's gotta actually read the outcome and turn it into usable pause settings, and that somebody is her. π
and here's the part i need you to not skip: this includes checking that we are operating in full duplex mode. like, the function verifies it. if you're not in full duplex that's a whole different conversation and the function knows it. don't come for her. π
for the deeper lore, the manpage is like "go read linkmode_resolve_pause" β that's where the further details live. iykyk. π§
π₯ SEE ALSO π₯
first up, the kernel file itself, no context needed:
Kernel file ./drivers/net/phy/phy_device.c
and then, bestie, brace yourself, because the friend group is massive β all of these are (9) entries and they all showed up to the party. not me listing every single one, but also... i absolutely am, because the manpage said so and we respect the manpage in this house π«Ά
phy_uses_state_machine(9)phy_register_fixup(9)genphy_match_phy_device(9)get_phy_c45_ids(9)get_phy_c22_id(9)get_phy_device(9)phy_device_register(9)phy_device_remove(9)phy_get_c45_ids(9)phy_find_next(9)phy_prepare_link(9)phy_connect_direct(9)phy_connect(9)phy_disconnect(9)phy_poll_reset(9)phy_sfp_connect_phy(9)phy_sfp_disconnect_phy(9)phy_sfp_attach(9)phy_sfp_detach(9)phy_sfp_probe(9)phy_attach_direct(9)phy_detach(9)phy_reset_after_clk_enable(9)genphy_config_advert(9)genphy_c37_config_advert(9)genphy_setup_forced(9)genphy_restart_aneg(9)genphy_check_and_restart_aneg(9)__genphy_config_aneg(9)genphy_c37_config_aneg(9)genphy_aneg_done(9)genphy_update_link(9)genphy_read_status_fixed(9)genphy_read_status(9)genphy_c37_read_status(9)genphy_soft_reset(9)genphy_read_abilities(9)phy_remove_link_mode(9)phy_advertise_supported(9)phy_advertise_eee_all(9)phy_support_eee(9)phy_disable_eee(9)phy_support_sym_pause(9)phy_support_asym_pause(9)phy_set_sym_pause(9)phy_set_asym_pause(9)phy_validate_pause(9)phy_get_internal_delay(9)phy_get_tx_amplitude_gain(9)phy_get_mac_termination(9)phy_get_sfp_port(9)fwnode_mdio_find_device(9)fwnode_phy_find_device(9)fwnode_get_phy_node(9)phy_probe(9)phy_driver_register(9)
like, fifty-something functions. she knows everyone. the networking stack is her group chat. π
quick reminder bestie:tx_pauseandrx_pauseare output pointers, so make sure they point at realbools before you call her, or that's an oopsie you did to yourself. π
and that's the page!! π source livin' in ./drivers/net/phy, dated October 2026, signed off with a little π and a reminder that phy_get_pause(9) ate and left no crumbs. periodt. πβ¨
π¦ 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