STRUCT DEVLINK_TRAP_GROUP_ITEM(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 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 be NULL, no big deal, she's allowed to ghost sometimes πŸ™ˆ
  • list β€” the trap_group_list member, 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:


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