ENUM DEVLINK_TRAP_ACTION(9)
π NAME π
okay bestie, welcome to the enum devlink_trap_action(9) page from the Kernel API Manual! This is literally all about Packet trap action β thatβs the name, thatβs the vibe. π
β¨ SYNOPSIS β¨
the way that this enum is built is giving very structured, very demure:
enum devlink_trap_action {
DEVLINK_TRAP_ACTION_DROP ,
DEVLINK_TRAP_ACTION_TRAP ,
DEVLINK_TRAP_ACTION_MIRROR
};
πΈ Constants πΈ
hereβs the lineup, no cap β three constants and they each have a whole personality:
DEVLINK_TRAP_ACTION_DROPβ packet is dropped by the device, and a copy is not sent to the CPU. π«ΆDEVLINK_TRAP_ACTION_TRAPβ the sole copy of the packet is sent to the CPU. πDEVLINK_TRAP_ACTION_MIRRORβ packet is forwarded by the device, and a copy is sent to the CPU. π¦
π SEE ALSO π
- Kernel file
./include/uapi/linux/devlink.hβ bestie, go peek atenum devlink_trap_type(9)andenum devlink_port_fn_opstate(9)too. iykyk π
mwah π this lil pageβs source/version is ./include/uapi/linux, dated October 2026, and the manual name is enum devlink_trap_action(9) β periodt. β¨
π¦ 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