STRUCT PIE_PARAMS(9)
πΈ NAME πΈ
okay so this is struct pie_params from the kernel API manual β section 9, bestie, we're in the deep internals now π
β and it's literally just the struct that holds all the pie parameters. that's it. that's the whole vibe. it contains pie parameters. iconic of it honestly π₯§β¨
β¨ SYNOPSIS β¨
here's the whole thing, typed out exactly, no cap:
struct pie_params {
psched_time_t target;
u32 tupdate;
u32 limit;
u32 alpha;
u32 beta;
u8 ecn;
u8 bytemode;
u8 dq_rate_estimator;
};
look at her. a whole little struct. main character energy fr fr π«Ά
π Members π
okay so now the important part, the members, one by one, no skipping, i would never π
targetβ the target delay, measured in pschedtime. that's the number you're aiming for, the goal, the dream πtupdateβ the interval at which the drop probability gets recalculated πlimitβ the total number of packets that can be in the queue. the cap. the ceiling. the "no more than this, bestie" βalphaβ a parameter that controls drop probability πΈbetaβ another parameter that controls drop probability. her and alpha are a duo, iykyk πecnβ is ECN marking of packets enabled? yes/no, that's the whole question πbytemodeβ is the drop probability scaled based on pkt size? πdq_rate_estimatorβ is Little's law used for qdelay calculation? that's the literally-what-it-says field name and i respect the honesty π₯
ngl, half of these are just "is this a thing, yes or no" flags, and honestly? slay. readable code is a flex π
π¦ SEE ALSO π¦
go look at the kernel file ./include/net/pie.h and also these besties:
struct pie_vars(9)struct pie_stats(9)struct pie_skb_cb(9)
and that's the page!! mwah π this one lives in ./include/net, dated October 2026, and it's struct pie_params(9) β go read the other structs too, they're all in this together π§β¨
π¦ 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