XE_RTP_ACTIO...ELD_SET_FUNC(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… XE_RTP_ACTION_FIELD_SET_FUNC πŸ’…

okay bestie, welcome to the Kernel API Manual ✨ β€” this one's a macro page, and honestly she's lowkey iconic once you get what she does. Sit down, hydrate, let's go 🫢


πŸŽ€ NAME πŸŽ€

XE_RTP_ACTION_FIELD_SET_FUNC β€” sets a bit range to the value that a function hands back. Literally it's giving "field set, but the value comes from a function" πŸ’–


✨ SYNOPSIS ✨

XE_RTP_ACTION_FIELD_SET_FUNC (reg_ , mask_bits_ , func_ , ... );

periodt, that's the whole call signature 🌸


πŸ¦‹ ARGUMENTS πŸ¦‹

  • reg_ β€” the register. the actual register, no cap πŸŽ€
  • mask_bits_ β€” the mask of the bits you're changing inside that register, and together those bits form a field πŸ’…
  • func_ β€” the function that returns the value you want to set in the field that mask_bits_ denotes. she's the main character here πŸ‘‘
  • ... β€” extra fields you wanna override in the struct xe_rtp_action entry. sprinkle as needed πŸ™ˆ

🌈 DESCRIPTION 🌈

so this macro works exactly like XE_RTP_ACTION_FIELD_SET β€” same energy β€” except the field value gets evaluated at the time the RTP table is processed ⭐

and like, the important bit: func_ will only be called a single time, when the RTP table is being processed πŸ’€ once. that's it. after processing, the value in the reg_sr entry is fixed and will not be re-evaluated. so don't be out here expecting her to refresh herself, because she will not 🧚

fr fr: one call, one time, then the value is locked in forever. plan accordingly bestie πŸ’œ

🌸 SEE ALSO 🌸

everything else in the family, all linked up πŸ’– and also the kernel file ./drivers/gpu/drm/xe/xe_rtp.h β€” that's where she lives 🏑


and that's the whole page, bestie πŸ“ she's short but she ate. mwah πŸ’‹

πŸ’– ✨ πŸŽ€ πŸ¦‹ 🌸 πŸ’… 🫢

sign-off szn πŸ§šπŸ’œ: this lil masterpiece comes from ./drivers/gpu/drm/xe, dated October 2026, and honestly? slay. hope this helped, ily, go read the rest of the RTP docs πŸ‘‘β­

πŸ“¦ where this page comes from