STRUCT KFD_IOCTL_DBG_TRAP_SET_WAVE_LAUNCH_OVERRIDE_ARGS(9)
π struct kfd_ioctl_dbg_trap_set_wave_launch_override_args β Kernel API Manual energy β¨
okay so bestie, welcome to the Kernel API Manual π and today's main character is struct kfd_ioctl_dbg_trap_set_wave_launch_override_args β yes that's a whole mouthful, yes she's iconic, let's get into it π¦
πΈ NAME πΈ
struct kfd_ioctl_dbg_trap_set_wave_launch_override_args β literally the arguments struct for KFD_IOC_DBG_TRAP_SET_WAVE_LAUNCH_OVERRIDE π that's it, that's the vibe.
β¨ SYNOPSIS β¨
struct kfd_ioctl_dbg_trap_set_wave_launch_override_args {
__u32 override_mode;
__u32 enable_mask;
__u32 support_request_mask;
};
three little __u32 fields, no cap, she's compact π
π«Ά Members π«Ά
override_modeβ tagged(IN)π β go peek atkfd_dbg_trap_override_mode, iykyk.enable_maskβ tagged(IN/OUT)π β referencekfd_dbg_trap_mask. the IN side is the override modes you're requesting to be enabled. the OUT side gets referenced down in Return below, so don't forget her.support_request_maskβ also tagged(IN/OUT)π β again, referencekfd_dbg_trap_mask. IN = the override modes you're requesting for a support check. OUT = also referenced in Return below. two-for-one deal, we love to see it π
π₯ Description π₯
Enable HW exceptions to raise trap. periodt. π
Generic errors apply (see kfd_dbg_trap_operations). Return is 0 on SUCCESS π. The previous enablement gets handed back to you in enable_mask, and the actual override support comes back in support_request_mask β like a little gift π.
EINVALif the override mode is not supported π β she simply doesn't do that.EACCESif the trap support requested is not actually supported π β i.e.enable_mask(IN) is not a subset ofsupport_request_mask(OUT). Otherwise it's considered a generic error (seekfd_dbg_trap_operations).
ngl bestie, note thatenable_mask(IN) not being a subset ofsupport_request_mask(OUT) is exactly what triggersEACCESβ read that twice, it matters π§
π SEE ALSO π
Kernel file ./include/uapi/linux/kfd_ioctl.h, plus 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_send_runtime_event_args(9) - struct
kfd_ioctl_dbg_trap_set_exceptions_enabled_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)
k bye bestie, go read the source at ./include/uapi/linux, dated October 2026, and slay π
β¨π
π¦ 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