STRUCT DEVLINK_TRAP_POLICER_ITEM(9)
π struct devlink_trap_policer_item(9) β like, the whole Kernel API Manual moment π
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_listmember. 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:
struct devlink_trap_group_item(9)struct devlink_trap_item(9)devl_traps_register(9)devlink_traps_register(9)devl_traps_unregister(9)devlink_traps_unregister(9)devlink_trap_report(9)devlink_trap_ctx_priv(9)devl_trap_groups_register(9)devlink_trap_groups_register(9)devl_trap_groups_unregister(9)devlink_trap_groups_unregister(9)devl_trap_policers_register(9)devl_trap_policers_unregister(9)
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
- 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