STRUCT KFD_IOCTL_DBG_TRAP_SET_FLAGS_ARGS(9)
β¨ struct kfd_ioctl_dbg_trap_set_flags_args(9) β¨
okay bestie so this is a page from the Kernel API Manual β we're literally in the kernel now, look at us go π
πΈ NAME πΈ
struct kfd_ioctl_dbg_trap_set_flags_args β the arguments struct for KFD_IOC_DBG_TRAP_SET_FLAGS. that's it, that's the whole vibe, she's a lil container for your flags π
π¦ SYNOPSIS π¦
struct kfd_ioctl_dbg_trap_set_flags_args {
__u32 flags;
};
like, one member. one. she's minimalist, she's lowkey iconic for it β¨
π Members π
flagsβ (IN/OUT) and yes bestie it goes both ways π IN = the flags you want to enable, OUT = the flags that were previously enabled. so it's not just a drop-off, it's a little exchange, an info swap, a two-way street π«Ά
π©· Description π©·
it sets flags for wave behaviour π that's the whole job. wave behaviour. flags. done.
and hey β the generic errors apply here too, you know the drill (peep kfd_dbg_trap_operations for the full rundown π). and it returns 0 on SUCCESS π slay.
EACCESSβ thrown when any debug device does not allow flag options π like, if even one of them says "nope, not doing flags today", that's a wholeEACCESSsituation. no cap.
π§ SEE ALSO π§
okay prepare yourself, this list is LONG and honestly she ate:
Kernel file ./include/uapi/linux/kfd_ioctl.h, 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_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_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)
likeβ¦ that's a friend group and a half π go read them, iykyk π
ngl this one is short but she's still valid. read the flags, respect theIN/OUT, don't forget the generic errors, and remember:0= SUCCESS = main character energy π
and that's a wrap bestie π brought to you straight from ./include/uapi/linux, dated October 2026, struct kfd_i...t_flags_args(9) β mwah π go debug something cute π¦
π¦ 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