STRUCT DEVLINK_TRAP_ITEM(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

okay so bestie, welcome to struct devlink_trap_item(9) from the Kernel API Manual β€” she’s literally all about packet trap attributes, and we are going to stan every single field πŸ’…βœ¨

🌸 NAME 🌸

struct devlink_trap_item β€” packet trap attributes. periodt.

✨ SYNOPSIS ✨

the whole struct is giving:

struct devlink_trap_item {
    const struct devlink_trap *trap;
    struct devlink_trap_group_item *group_item;
    struct list_head list;
    enum devlink_trap_action action;
    struct devlink_stats __percpu *stats;
    void *priv;
 };

πŸ’– MEMBERS πŸ’–

  • trap β€” immutable packet trap attributes. don’t touch, she’s immutable πŸ’…
  • group_item β€” associated group item.
  • list β€” trap_list member.
  • action β€” trap action.
  • stats β€” trap statistics.
  • priv β€” driver private information.

πŸ¦‹ DESCRIPTION πŸ¦‹

so this struct describes both mutable and immutable packet trap attributes. it’s created by devlink during trap registration, and it’s used for all trap related operations. main character energy fr fr 🫢

πŸ”₯ SEE ALSO πŸ”₯

okay bestie, go look at the Kernel file ./net/devlink/trap.c, plus these iconic references:


cute little sign-off bestie: source/version is ./net/devlink, dated October 2026, and the page is struct devlink_trap_item(9) β€” slay and goodbye πŸ’–πŸŽ€

πŸ“¦ where this page comes from