xe_res_first(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… xe_res_first(9) πŸ’…

okay bestie, welcome to the Kernel API Manual β€” yes, that's the manual name, and yes, we're doing this. today's main character is xe_res_first(9), and she's here to set up a cursor. slay.


✨ NAME ✨

xe_res_first β€” initialize a xe_res_cursor πŸŽ€

like, she spins up the cursor so you can start walking. that's the whole vibe.


🌸 SYNOPSIS 🌸

void xe_res_first (struct ttm_resource *res , u64 start , u64 size ,
struct xe_res_cursor *cur );

(that line break is just the terminal being quirky, the signature is exactly the above β€” copy it character for character, no cap 🫢)


πŸ¦‹ ARGUMENTS πŸ¦‹

  • res β€” the TTM resource object you're about to walk through. she's the thing being traversed πŸ’«
  • start β€” where the range begins. the starting line, the beginning of the era πŸ‘‘
  • size β€” how big the range is. the size of the situation, if you will 🌈
  • cur β€” the cursor object to initialize. this is the one getting set up by this function, so hand her over πŸ’–

⭐ DESCRIPTION ⭐

okay so here's the tea: you call this and it starts walking over the range of allocations between start and size. that's it, that's the function.

literally the setup step. the "get your cursor ready" moment. main character energy for cur, honestly. πŸ’…


πŸ”₯ SEE ALSO πŸ”₯

like, go read the whole friend group, they all hang out together 🫢✨


ngl the whole squad lives in ./drivers/gpu/drm/xe and this page is dated October 2026 β€” mark your calendars, bestie πŸ—“οΈπŸ’œ

mwah, that's the page. go init some cursors. πŸ’…πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from