ENUM KFD_UNMAP_QUEUES_FILTER(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– enum kfd_unmap_queues_filter πŸ’–

okay so bestie, this is a page from the Kernel API Manual β€” yes, the kernel, the big scary one, but we're gonna get through it together 🫢 it's literally just an enum, you've got this.


✨ NAME ✨

enum kfd_unmap_queues_filter β€” the enum for queue filters. that's it, that's the whole vibe. it's giving "small but mighty" πŸ’…


🌸 SYNOPSIS 🌸

enum kfd_unmap_queues_filter {
    KFD_UNMAP_QUEUES_FILTER_ALL_QUEUES ,
    KFD_UNMAP_QUEUES_FILTER_DYNAMIC_QUEUES ,
    KFD_UNMAP_QUEUES_FILTER_BY_PASID

};

look at her. three constants, zero drama. iykyk 😌


πŸŽ€ Constants πŸŽ€

so these are the three besties of the enum, each one picks a different set of queues to preempt. preempting, if you were wondering, is like the kernel going "excuse me, your turn is OVER" πŸ’€

  • KFD_UNMAP_QUEUES_FILTER_ALL_QUEUES β€” preempts all queues in the running queues list. every single one. no survivors, no exceptions, main character energy fr fr πŸ”₯
  • KFD_UNMAP_QUEUES_FILTER_DYNAMIC_QUEUES β€” preempts all non-static queues in the run list. so like, the dynamic ones only. the static girlies get to stay. lowkey fair tbh ✨
  • KFD_UNMAP_QUEUES_FILTER_BY_PASID β€” preempts queues that belongs to a specific process. yes, one particular process, hand-picked, targeted, iconic πŸ‘‘ (and yes the original grammar says "belongs" β€” we're not fixing it, we're respecting the source material 🫢)

πŸ¦‹ SEE ALSO πŸ¦‹

the whole friend group, in case you wanna go read more:

  • Kernel file ./drivers/gpu/drm/amd/amdkfd/kfd_priv.h enum
  • kfd_ioctl_flags(9)
  • enum kfd_queue_type(9)
  • struct queue_properties(9)
  • struct queue(9)
  • amdkfd_ioctl_t(9)
  • enum kfd_config_dequeue_wait_counts_cmd(9)

reminder bestie: this is kernel-level queue preemption stuff, so it's not like a cute little userland flag you can just yolo. read the actual structs before you touch anything, okay? πŸ’œ

that's the whole page!! short and sweet, just how we like it 🌈 and for the sign-off: this little beauty lives over in ./drivers/gpu/drm/amd/amdkfd, it's dated October 2026, and yes the header on the original was enum kfd_unm...ueues_filter(9) because even kernel docs get a little truncated sometimes 😭 slay, bye!! πŸ“πŸ§šπŸ’…

πŸ“¦ where this page comes from