STRUCT DEVLINK_TRAP_ITEM(9)
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_listmember.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:
struct devlink_trap_policer_item(9)struct devlink_trap_group_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)
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
- 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