STRUCT KFD_IOCTL_DBG_TRAP_SEND_RUNTIME_EVENT_ARGS(9)
π struct kfd_ioctl_dbg_trap_send_runtime_event_args(9) π
okay so bestie, welcome to the Kernel API Manual β¨ β this one's a struct page, and it's lowkey a whole vibe. It's the args struct for KFD_IOC_DBG_TRAP_SEND_RUNTIME_EVENT, and yes, she's got main character energy π
πΈ NAME πΈ
struct kfd_ioctl_dbg_trap_send_runtime_event_args β literally the arguments for KFD_IOC_DBG_TRAP_SEND_RUNTIME_EVENT. that's the whole name, no notes π
β¨ SYNOPSIS β¨
struct kfd_ioctl_dbg_trap_send_runtime_event_args {
__u64 exception_mask;
__u32 gpu_id;
__u32 queue_id;
};
like, three fields. short king π«Ά
π Members π
exception_maskβ (IN) β the exceptions you wanna raise to runtime, packed into a mask πgpu_idβ (IN) β the target device id, iykyk which GPU you're talking to π₯queue_idβ (IN) β the target queue id, so she knows exactly which queue is the moment β¨
π Description π
So what does she do? She raises exceptions to runtime π periodt.
Generic errors apply (see kfd_dbg_trap_operations). Return: 0 on SUCCESS π
ENODEVifgpu_idnot found π. And listen β ifexception_maskcontainsEC_PROCESS_RUNTIME, that unblocks the pendingAMDKFD_IOC_RUNTIME_ENABLEcall β seekfd_ioctl_runtime_enable_args. All the other exceptions get raised to runtime througherr_payload_addrβ seekfd_context_save_area_headerπ
ngl, the EC_PROCESS_RUNTIME path is the little special-case that ate π don't sleep on it.
π¦ SEE ALSO π¦
Kernel file ./include/uapi/linux/kfd_ioctl.h struct β and the whole friend group π:
- struct
kfd_ioctl_criu_args(9) - enum
kfd_ioctl_svm_op(9) - enum
kfd_ioctl_svm_attr_type(9) - struct
kfd_ioctl_svm_attribute(9) - struct
kfd_ioctl_svm_args(9) - struct
kfd_ioctl_set_xnack_mode_args(9) - struct
kfd_ioctl_runtime_enable_args(9) - struct
kfd_ioctl_dbg_trap_enable_args(9) - struct
kfd_ioctl_dbg_trap_set_exceptions_enabled_args(9) - struct
kfd_ioctl_dbg_trap_set_wave_launch_override_args(9) - struct
kfd_ioctl_dbg_trap_set_wave_launch_mode_args(9) - struct
kfd_ioctl_dbg_trap_suspend_queues_args(9) - struct
kfd_ioctl_dbg_trap_resume_queues_args(9) - struct
kfd_ioctl_dbg_trap_set_node_address_watch_args(9) - struct
kfd_ioctl_dbg_trap_clear_node_address_watch_args(9) - struct
kfd_ioctl_dbg_trap_set_flags_args(9) - struct
kfd_ioctl_dbg_trap_query_debug_event_args(9) - struct
kfd_ioctl_dbg_trap_query_exception_info_args(9) - struct
kfd_ioctl_dbg_trap_queue_snapshot_args(9) - struct
kfd_ioctl_dbg_trap_device_snapshot_args(9) - struct
kfd_ioctl_dbg_trap_args(9) - struct
kfd_ioctl_pmc_settings(9)
and that's the page, bestie π«Ά shoutout to ./include/uapi/linux for the source, October 2026 for the date, and struct kfd_...e_event_args(9) for the footer β slay, iconic, no cap πβ¨π
π¦ 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