xe_gsc_read_out_header(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… xe_gsc_read_out_header β€” kernel API manual, bestie edition ✨

okay so real talk: this one lives in the Kernel API Manual, and honestly? it's giving "tiny function, big responsibilities." πŸŽ€ It reads the output header, validates it, and hands you back the offset of the reply that comes right after the header. Lowkey iconic. No cap. πŸ‘‘


✨ NAME ✨

xe_gsc_read_out_header β€” reads and validates the output header and returns the offset of the reply following the header πŸ¦‹


🌸 SYNOPSIS 🌸

int xe_gsc_read_out_header (struct xe_device *xe , struct iosys_map *map
, u32 offset , u32 min_payload_size , u32 *payload_offset );

like, that's the whole signature, copied exactly, don't come for me πŸ’…


πŸ’– ARGUMENTS πŸ’–

  • xe β€” the Xe device, the main character of this whole operation πŸ‘‘
  • map β€” the iosys map that's holding your output buffer
  • offset β€” where inside the iosys your output buffer is actually sitting
  • min_payload_size β€” the minimum size of the message, not counting the gsc header
  • payload_offset β€” an optional pointer, and if you pass it, it gets set to the payload offset ✨
ok bestie, note that payload_offset is optional. you don't have to hand it over. it's not that kind of function. 🫢

🌈 RETURN 🌈

An -errno value if things go wrong, and 0 otherwise. that's it, that's the vibe check βœ…


🧚 SEE ALSO 🧚

Kernel file:

./drivers/gpu/drm/xe/xe_gsc_submit.c

and the rest of the friend group πŸ’œ:


and that's the page, periodt. πŸ’… this little beauty comes from the ./drivers/gpu/drm/xe source, dated October 2026, fr fr β€” go off, Xe directory, you ate. πŸ”₯🌷

πŸ“¦ where this page comes from