XE_RTP_RULE_OR(9)
π XE_RTP_RULE_OR(9) π
okay bestie, welcome to the Kernel API Manual page for XE_RTP_RULE_OR β it's giving niche-but-iconic, and honestly? obsessed. β¨
πΈ NAME πΈ
XE_RTP_RULE_OR β the little macro that creates an OR condition for rtp rules π
π¦ SYNOPSIS π¦
XE_RTP_RULE_OR
that's it. that's the whole synopsis. no arguments, no drama, main character energy only π
π DESCRIPTION π
so here's the tea, bestie π: RTP rules are AND'ed when evaluated β meaning all of them need to match. every single one. no exceptions. the whole squad has to show up. π
XE_RTP_RULE_OR is the glow-up that lets you create a set of rules where any of them matching is sufficient for the action to trigger. so like, instead of the whole group chat needing to reply, literally any one of them can carry the convo. lowkey iconic. π
here's the example, verbatim, no cap:
const struct xe_rtp_entry_sr entries[] = {
...
{ XE_RTP_NAME("test-entry"),
XE_RTP_RULES(PLATFORM(DG2), OR, PLATFORM(TIGERLAKE)),
...
},
...
};
see that OR sitting pretty in the middle of XE_RTP_RULES(...)? that's the moment. π«
π₯ SEE ALSO π₯
like, go read these too, they're all in the kernel file ./drivers/gpu/drm/xe/xe_rtp.h and they're all part of the same friend group fr fr:
XE_RTP_RULE_PLATFORM(9)XE_RTP_RULE_SUBPLATFORM(9)XE_RTP_RULE_PLATFORM_STEP(9)XE_RTP_RULE_GRAPHICS_STEP(9)XE_RTP_RULE_MEDIA_STEP(9)XE_RTP_RULE_ENGINE_CLASS(9)XE_RTP_RULE_FUNC(9)XE_RTP_RULE_GRAPHICS_VERSION(9)XE_RTP_RULE_GRAPHICS_VERSION_RANGE(9)XE_RTP_RULE_GRAPHICS_VERSION_ANY_GT(9)XE_RTP_RULE_MEDIA_VERSION(9)XE_RTP_RULE_MEDIA_VERSION_RANGE(9)XE_RTP_RULE_MEDIA_VERSION_ANY_GT(9)XE_RTP_RULE_IS_INTEGRATED(9)XE_RTP_RULE_IS_DISCRETE(9)XE_RTP_ACTION_WR(9)XE_RTP_ACTION_SET(9)XE_RTP_ACTION_CLR(9)XE_RTP_ACTION_FIELD_SET(9)XE_RTP_ACTION_FIELD_SET_FUNC(9)XE_RTP_ACTION_WHITELIST(9)XE_RTP_NAME(9)XE_RTP_ENTRY_FLAG(9)XE_RTP_ACTION_FLAG(9)XE_RTP_RULES(9)XE_RTP_ACTIONS(9)xe_rtp_match_always(9)xe_rtp_match_even_instance(9)xe_rtp_match_has_flat_ccs(9)xe_rtp_match_has_msix(9)
π reminder bestie: these are kernel API pages, so they're not playing around. read them properly, not just the vibes.
and that's the whole page, periodt. π«Ά this one lives in ./drivers/gpu/drm/xe, dropped October 2026, signed off with love by your favorite kernel baddies β XE_RTP_RULE_OR(9) out. πβ¨
π¦ 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