STRUCT CODEL_VARS(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 β€” the count at entry to dropping state πŸ‘‘ so like, the "before" photo of your count.
  • dropping β€” set to true if in dropping state πŸ”₯ yes queen, we're dropping.
  • rec_inv_sqrt β€” reciprocal value of sqrt(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