STRUCT CODEL_VARS(9)
π struct codel_vars(9) β Kernel API Manual π
okay so bestie, welcome to the codel variables page β¨ this is a lil struct in the Kernel API Manual and honestly it's giving "small but runs the whole vibe" energy π
πΈ NAME πΈ
struct codel_vars β bestie, it literally contains codel variables π that's the whole gig. short, sweet, iconic.
β¨ SYNOPSIS β¨
here's the shape of her, exactly as she is, no cap:
struct codel_vars {
u32 count;
u32 lastcount;
bool dropping;
u16 rec_inv_sqrt;
codel_time_t first_above_time;
codel_time_t drop_next;
codel_time_t ldelay;
};
likeβ¦ look at those fields. immaculate. π¦
π Members π
okay so let's go through every single one because we do NOT skip members in this house π«Ά
countβ how many drops we've done since the last time we entered dropping state π that's the tally, that's the receipts.lastcountβ thecountat entry to dropping state π so like, the "before" photo of your count.droppingβ set totrueif in dropping state π₯ yes queen, we're dropping.rec_inv_sqrtβ reciprocal value ofsqrt(count) >> 1β literally what it says, don't come for me.first_above_timeβ when we went (or will go) continuously above target for interval π past tense, future tense, she does both.drop_nextβ time to drop next packet, or when we dropped last π either/or, she contains multitudes.ldelayβ sojourn time of last dequeued packet π§ the last one out the door.
π¦ SEE ALSO π¦
go read these next, bestie, they're the friend group:
- Kernel file
./include/net/codel.h struct codel_params(9)struct codel_stats(9)
iykyk π
lowkey reminder: everything up there? verbatim. the fields, the types, the file path β copy them exactly, no renaming, no "fixing", no merging π that's the whole rule.
okay that's the page!! slay π this one lives in ./include/net and the version/date stamp is October 2026 β so yeah, dated October 2026, from ./include/net, 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