XE_RTP_ACTION_SET(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… XE_RTP_ACTION_SET(9) β€” the one where we set bits, bestie ✨

Okay so real talk, this is a page from the Kernel API Manual, and it's literally about XE_RTP_ACTION_SET β€” the macro that sets bits in a register. No cap, that's the whole vibe. Let's get into it 🫢


🌸 NAME 🌸

XE_RTP_ACTION_SET β€” sets bits from val_ in the register. Yes, that's it. That's the job. Iconic, minimal, does exactly what it says on the tin πŸ’…


✨ SYNOPSIS ✨

XE_RTP_ACTION_SET (reg_ , val_ , ... );

Look at her. Three little pieces and she's already running the whole register. Obsessed πŸ’–


πŸŽ€ ARGUMENTS πŸŽ€

  • reg_ β€” the Register. Like, the actual one you're poking. The main character, honestly πŸ‘‘
  • val_ β€” the bits you wanna set in that register. This is your contribution, your little gift to the hardware 🌸
  • ... β€” extra fields you can override in the struct xe_rtp_action entry. Yes bestie, it's variadic, she's flexible like that πŸ¦‹

πŸ’œ DESCRIPTION πŸ’œ

so here's the tea: for masked registers this all translates to a single write. One and done, no drama, slay ✨

But for other registers?? it's a RMW β€” a read-modify-write, the classic little "read it, change it, write it back" situation. Lowkey more steps but she's still doing her thing 😭

And the correspondent bspec notation looks like this β€” the example here is for bits 2 and 5, but honestly it could be any bits, don't @ me:

REGNAME[2] = 1 REGNAME[5] = 1

That's it. That's the notation. Bits going to 1, living their best life 🧚


πŸ”₯ SEE ALSO πŸ”₯

Go read these next, they're all in the kernel file ./drivers/gpu/drm/xe/xe_rtp.h, and they're all giving main character energy in their own way:

That's thirty, bestie. Thirty. I counted πŸ’€


Heads up: everything above lives in the kernel source tree, so it's kernel-API territory β€” read the linked pages before you go setting bits in places, iykyk πŸ™ˆ

okay that's the whole page, mwah πŸ’‹ This lil' beauty ships out of ./drivers/gpu/drm/xe and the version stamp says October 2026 β€” so mark your calendar, screenshot it, put it on your wall, periodt πŸŽ€β­πŸ’–

πŸ“¦ where this page comes from