STRUCT KFD_IOCTL_DBG_TRAP_SET_FLAGS_ARGS(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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 whole EACCESS situation. 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 the IN/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