pse_pi_allo..._static_prio(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– pse_pi_allocate_pw_budget_static_prio β€” kernel API manual, bestie edition πŸ’–

okay so this is a page from the Kernel API Manual (section 9, the kernel-API girlies) and it's all about pse_pi_allocate_pw_budget_static_prio, which is a whole mouthful but honestly kind of iconic once you get it. It's the function that hands out power budget for the PI when the budget eval strategy is static. Stay with me, we're gonna slay this 🫢


✨ NAME ✨

pse_pi_allocate_pw_budget_static_prio β€” allocate power budget for the PI when the budget eval strategy is static πŸ’…

like, that's literally the whole job. it allocates power. statically. by priority. no cap.


πŸ¦‹ SYNOPSIS πŸ¦‹

int pse_pi_allocate_pw_budget_static_prio (struct pse_controller_dev
*pcdev , int id , int pw_req , struct netlink_ext_ack *extack );

four args, one int back. that's the vibe check and she passes πŸ”₯


🌸 ARGUMENTS 🌸

  • pcdev β€” a pointer to the PSE. like, the actual PSE. gotta know which one, bestie πŸ‘‘
  • id β€” index of the PSE control. which control we're talking about, iykyk.
  • pw_req β€” power requested in mW. milliwatts, not vibes ✨
  • extack β€” extack for error reporting. when things go sideways, this is the one that tells the story 😭

πŸ’œ DESCRIPTION πŸ’œ

So here's the teaaaa πŸ“ β€” this one allocates power using the static budget evaluation strategy, where the allocation is based on PD classification. That's the whole system, that's the whole girl.

And the drama? When there's insufficient budget available, the lower-priority ports β€” which, plot twist, are the ones with higher priority numbers β€” get turned off first. yes bestie, the numbers go the opposite way you'd expect. it's giving chaos but it's actually very fair πŸ’…

heads up: higher priority number = lower priority. don't get it twisted, that's literally in the source. πŸ™ˆ

⭐ RETURN ⭐

0 on success, and a failure value on error. classic. she ate and left no crumbs πŸ’€


🌈 SEE ALSO 🌈

okay this list is LONG but we're not skipping a single one, that's a promise 🫢 first up, the kernel file: ./drivers/net/pse-pd/pse_core.c

then the whole friend group:

thirty-seven entries, all present and accounted for, main character energy from start to finish πŸ‘‘


that's the page, bestie!! sourced from ./drivers/net/pse-pd, dated October 2026, and she lives under the pse_pi_allo..._static_prio(9) name in the Kernel API Manual 'cause the title got truncated for the header β€” iconic honestly. go forth and allocate responsibly πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from