STRUCT DEVLINK_TRAP_METADATA(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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 for input_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