STRUCT DEVLINK_TRAP_METADATA(9)
π NAME π
okay so bestie, this is struct devlink_trap_metadata β literally packet trap metadata β and we're chilling in the Kernel API Manual, section 9 energy, aka the devlink_trap_metadata(9) page. slay. π
β¨ SYNOPSIS β¨
struct devlink_trap_metadata {
const char *trap_name;
const char *trap_group_name;
struct net_device *input_dev;
netdevice_tracker dev_tracker;
const struct flow_action_cookie *fa_cookie;
enum devlink_trap_type trap_type;
};
π§ Members π§
trap_nameβ the trap name, literally just the name πtrap_group_nameβ the trap group name, periodt β¨input_devβ the input netdevice, no cap π¦dev_trackerβ the refcount tracker forinput_devπ«Άfa_cookieβ the flow action user cookie, yes bestie, a cookie πtrap_typeβ the trap type, iconic π
π SEE ALSO π
Kernel file ./include/net/devlink.h says hii, and the whole squad is:
struct devlink_port_pci_pf_attrs(9)struct devlink_port_pci_vf_attrs(9)struct devlink_port_pci_sf_attrs(9)struct devlink_port_attrs(9)struct devlink_linecard_ops(9)struct devlink_dpipe_field(9)struct devlink_dpipe_header(9)struct devlink_dpipe_match(9)struct devlink_dpipe_action(9)struct devlink_dpipe_value(9)struct devlink_dpipe_entry(9)struct devlink_dpipe_dump_ctx(9)struct devlink_dpipe_table(9)struct devlink_dpipe_table_ops(9)struct devlink_dpipe_headers(9)struct devlink_resource_size_params(9)struct devlink_flash_notify(9)struct devlink_param(9)struct devlink_flash_update_params(9)struct devlink_region_ops(9)struct devlink_port_region_ops(9)struct devlink_health_reporter_ops(9)struct devlink_trap_policer(9)struct devlink_trap_group(9)struct devlink_trap(9)struct devlink_port_ops(9)
mwah π β footer sign-off: source ./include/net, date/version October 2026, and the echoed title is struct devli...rap_metadata(9). bye bestie, go read your kernel headers π
π¦ 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