STRUCT XE_RTP_ACTION(9)
π struct xe_rtp_action(9) π
okay bestie, welcome to the Kernel API Manual β¨ grab a boba, we're doing kernel structs today and honestly? this one's kinda iconic.
π NAME π
struct xe_rtp_action β the action to take for any matching rule. that's it, that's the vibe π
β¨ SYNOPSIS β¨
so here's the whole shape of her, no cap, copy-paste exact:
struct xe_rtp_action {
struct xe_reg reg;
u32 clr_bits;
union {
u32 set_bits;
u32 (*set_func)(struct xe_gt *gt, struct xe_hw_engine *hwe);
};
#define XE_RTP_NOCHECK .read_mask = 0;
u32 read_mask;
#define XE_RTP_ACTION_FLAG_ENGINE_BASE BIT(0);
u8 flags;
u8 use_func:1;
};
like look at her. the union. the bitfields. the #defines smuggled right in the middle of the struct definition. main character energy fr fr π«Ά
πΈ Members πΈ
regβ the register. literally just the register she's working with πclr_bitsβ the bits to clear when updating the register. important note bestie: this is always a superset of the bits being modified β not a subset, a superset β so don't get cute with it π{unnamed_union}β anonymous. she has no name. she simply is. π¦set_bitsβ the bits to set when updating the register β¨set_funcβ a function that provides the bits to set when updating the register. for when you're too cool to hardcode them πread_maskβ the mask for bits to consider when reading the value back π₯flagsβ flags to apply on rule evaluation or action πuse_funcβ internal flag indicating thatset_funcshould be called instead of usingset_bits. it's an internal flag, so like, iykyk, hands off π«Ά
π Description π
so the whole point of this struct, bestie: it records what action should be taken in a register that has a matching rule π
examples of those actions? setting bits and clearing bits. that's the whole menu. set/clear. slay. periodt π
π₯ SEE ALSO π₯
- Kernel file
./drivers/gpu/drm/xe/xe_rtp_types.hβ go read it, it's giving lore β¨
okay and that's the whole page!! finishing touch: this little beauty lives under ./drivers/gpu/drm/xe and the docs are dated October 2026 β so like, future energy π« go forth and match some rules, bestie, you've got this π§ββοΈπ
π¦ 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