STRUCT KFD_IOCTL_DBG_TRAP_SET_EXCEPTIONS_ENABLED_ARGS(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 NAME 🌸

struct kfd_ioctl_dbg_trap_set_exceptions_enabled_args β€” okay so this is literally the arguments struct for KFD_IOC_SET_EXCEPTIONS_ENABLED. That's it. That's the whole vibe. It's a Kernel API Manual situation, bestie, and we're in the kfd cinematic universe now 🎬


✨ SYNOPSIS ✨

Like, the entire struct is this. One (1) member. Minimalist queen πŸ’…

struct kfd_ioctl_dbg_trap_set_exceptions_enabled_args {
    __u64 exception_mask;
};

πŸŽ€ Members πŸŽ€

  • exception_mask β€” this one's marked (IN), and it's the new exceptions you wanna raise to the debugger. That's the whole assignment. That's the job. 🫢

πŸ¦‹ Description πŸ¦‹

So what does it do? It sets new exceptions to be raised to the debugger. Simple. Iconic. No notes. ✨

Heads up though β€” generic errors apply (go peek at kfd_dbg_trap_operations for the deets, iykyk). And it returns 0 on SUCCESS. That's the happy path, bestie, protect it at all costs πŸ’–

🌈 SEE ALSO 🌈

Time for the friend group roll call, because this struct does not exist in isolation, no cap:

  • 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_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 post 🫢 this little page lives in ./include/uapi/linux, dated October 2026, and it's filed under struct kfd_...enabled_args(9). go off, king πŸ‘‘πŸ’œ

πŸ“¦ where this page comes from