xe_rtp_process_to_sr(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… xe_rtp_process_to_sr β€” the kernel API manual, bestie edition πŸŽ€

okay so this is xe_rtp_process_to_sr(9) from the Kernel API Manual, and honestly? it's giving "little function, big job." it walks a table, checks the rules, and files the matching stuff into your save-restore struct. slay. let's get into it ✨


✨ NAME ✨

xe_rtp_process_to_sr β€” processes all the rtp @entries, and adds the ones that match into the save-restore argument. that's it, that's the whole vibe 🫢


🌸 SYNOPSIS 🌸

void xe_rtp_process_to_sr (struct xe_rtp_process_ctx *ctx , const struct
       xe_rtp_table_sr *table , struct xe_reg_sr *sr , bool process_in_vf );

like, look at her. four params, one void, zero drama. periodt πŸ’…


πŸ¦‹ ARGUMENTS πŸ¦‹

okay bestie, here's who's who in the group chat:

  • ctx β€” the context for processing the table, and it comes with exactly one of: device, gt, or hwe. pick your main character πŸŽ€
  • table β€” the table with the RTP definitions. the source material, the lore, iykyk.
  • sr β€” the save-restore struct where matching rules execute the action. think of it as the "coalesced view" of multiple of the tables. ⚠️ heads up: the bits for each register set are expected not to collide with previously added entries β€” no cap, that's a real expectation, don't be messy.
  • process_in_vf β€” whether this RTP table should get processed for SR-IOV VF devices. should generally only be 'true' for LRC tables. so like, don't just set it true for fun πŸ™ˆ

πŸ”₯ DESCRIPTION πŸ”₯

so what does she actually do? walk the table pointed by entries (with an empty sentinel β€” yes, the sentinel is iconic and necessary), and add all entries with matching rules to sr. πŸ’–

and if hwe is not NULL, its mmio_base is used to calculate the right register offset. the way that offset math just… works. obsessed. ⭐


πŸ‘‘ SEE ALSO πŸ‘‘

go be nosy, bestie:


and that's the whole page, no notes πŸ’œ

cute little sign-off: this masterpiece lives under ./drivers/gpu/drm/xe, dated October 2026, and it's literally called xe_rtp_process_to_sr(9). go forth and process those entries πŸ§šβ€β™€οΈπŸ“

πŸ“¦ where this page comes from