pse_pw_d_is_sw_pw_control(9)
π pse_pw_d_is_sw_pw_control β like, is this power control a software girlie or what?
okay bestie, welcome to pse_pw_d_is_sw_pw_control(9) from the Kernel API Manual β¨ this one's a tiny little yes/no function and honestly it ate π
β¨ NAME β¨
pse_pw_d_is_sw_pw_control β figure out whether the power control is managed by software, no cap π«Ά
πΈ SYNOPSIS πΈ
bool pse_pw_d_is_sw_pw_control (struct pse_controller_dev *pcdev ,
struct pse_power_domain *pw_d );
π ARGUMENTS π
pcdevβ a pointer to the PSE controller device π like, the controller itself, bestiepw_dβ a pointer to the PSE power domain π¦ the specific domain we're doing a vibe check on
π DESCRIPTION π
So this function literally just determines whether the power control for a specific power domain is managed by software in the interrupt handler, rather than directly by hardware π yes, that distinction matters, iykyk.
Software power control is active in these cases, periodt:
- When the budget evaluation strategy is set to
staticβ - When the budget evaluation strategy is disabled but the PSE controller has an interrupt handler that can report if a Powered Device is connected π₯
π RETURN π
trueif the power control of the power domain is managed by software π§β¨falseotherwise π (no software control energy today, sorry)
π SEE ALSO π
Kernel file ./drivers/net/pse-pd/pse_core.c, plus the whole friend group:
struct pse_control(9)struct pse_power_domain(9)of_load_pse_pi_pairsets(9)of_load_pse_pis(9)pse_control_find_by_id(9)pse_control_get_netdev(9)pse_pi_is_hw_enabled(9)pse_pi_is_admin_enable_pending(9)pse_pw_d_retry_power_delivery(9)pse_pi_deallocate_pw_budget(9)_pse_pi_disable(9)pse_disable_pi_pol(9)pse_disable_pi_prio(9)pse_pi_allocate_pw_budget_static_prio(9)pse_pi_allocate_pw_budget(9)_pse_pi_delivery_power_sw_pw_ctrl(9)pse_flush_pw_ds(9)devm_pse_alloc_pw_d(9)pse_register_pw_ds(9)pse_send_ntf_worker(9)pse_controller_register(9)pse_controller_unregister(9)devm_pse_controller_register(9)pse_to_regulator_notifs(9)pse_set_config_isr(9)pse_isr(9)devm_pse_irq_helper(9)pse_control_put(9)of_pse_match_pi(9)psec_id_xlate(9)pse_get_sw_admin_state(9)pse_ethtool_get_status(9)pse_ethtool_set_config(9)pse_pi_update_pw_budget(9)pse_ethtool_set_pw_limit(9)pse_ethtool_set_prio(9)
mwah π that's the whole page! This lil cutie lives in ./drivers/net/pse-pd, and this version is the October 2026 era ποΈβ¨ slay, go read the source, ily, bye π«Άπ
π¦ 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