STRUCT DEVLINK_TRAP_POLICER_ITEM(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

okay so bestie, welcome to the glow-up of the <pink>Kernel API Manual</pink> page for struct devlink_trap_policer_item(9) β€” she's niche, she's networky, she's giving "I live in ./net/devlink and I know it" πŸ’… let's get into it ✨


✨ NAME ✨

struct devlink_trap_policer_item β€” Packet trap policer attributes. that's it, that's the vibe 🫢


🌸 SYNOPSIS 🌸

struct devlink_trap_policer_item {
    const struct devlink_trap_policer *policer;
    u64 rate;
    u64 burst;
    struct list_head list;
 };

like, literally copy that exactly, no cap β€” she's four fields and every single one of them matters πŸ”₯


πŸ¦‹ Members πŸ¦‹

  • policer β€” Immutable packet trap policer attributes. immutable!! she does not change, she is who she is, main character energy πŸ‘‘
  • rate β€” Rate in packets / sec. yes, packets per second, that's the unit, don't @ me πŸ“
  • burst β€” Burst size in packets. also packets. consistent icon behavior ⭐
  • list β€” trap_policer_list member. she's on the list, literally πŸ’€

🧚 Description 🧚

Describes packet trap policer attributes. Created by devlink during trap policer registration ✨

that's the whole lore bestie β€” devlink herself builds this thing at registration time, and then it just sits there being all descriptive and immutable and iconic 🌈


πŸ’œ SEE ALSO πŸ’œ

Kernel file ./net/devlink/trap.c (iykyk πŸ‘€), plus her whole friend group:

no gatekeeping, go read all of them fr fr πŸ“š


lowkey a reminder: this page lives at ./net/devlink, she's dated October 2026, and she's brought to you by the <rainbow>Kernel API Manual</rainbow> β€” mwah, slay, bye bestie πŸ’–πŸŽ€πŸ¦‹
πŸ“¦ where this page comes from