STRUCT DEVLINK_TRAP_GROUP_ITEM(9)
πΈ NAME πΈ
ok so struct devlink_trap_group_item β it's literally the packet trap group attributes bestie, that's the whole vibe π
β¨ SYNOPSIS β¨
struct devlink_trap_group_item {
const struct devlink_trap_group *group;
struct devlink_trap_policer_item *policer_item;
struct list_head list;
struct devlink_stats __percpu *stats;
};
π Members π
groupβ the immutable packet trap group attributes, like, they do not change, periodt πpolicer_itemβ the associated policer item. can beNULL, no big deal, she's allowed to ghost sometimes πlistβ thetrap_group_listmember, she's on the list, she's invited, main character energy πstatsβ the trap group statistics, all the numbers, we love data π
π Description π
So basically this struct describes the packet trap group attributes, ok? It gets created by devlink during trap group registration β devlink is the one doing the creating, that's her job, and she ate π β¨
π¦ SEE ALSO π¦
the kernel file ./net/devlink/trap.c (iykyk) plus these iconic siblings:
struct devlink_trap_policer_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)
ngl this whole thing lives in ./net/devlink and the version is October 2026, kernel API manual core π«Ά
ok that's the page bestie, go register some trap groups, slay ππ
π¦ 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