xe_lrc_setu...with_scratch(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ xe_lrc_setup_wa_bb_with_scratch(9) ✨

okay bestie, welcome to the Kernel API Manual πŸ’– β€” this one's a lil function from the Xe graphics driver and honestly? it's giving "worker bee of the workarounds". no cap, let's get into it 🐝


🌸 NAME 🌸

xe_lrc_setup_wa_bb_with_scratch β€” literally runs all the wa bb setup callbacks. all of them. every single one. she does not skip πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

int xe_lrc_setup_wa_bb_with_scratch (struct xe_lrc *lrc , struct
       xe_hw_engine *hwe , u32 *scratch );

yup, that's the whole signature β€” int in, int out, three args in the middle. iconic honestly πŸŽ€


πŸ’œ ARGUMENTS πŸ’œ

  • lrc β€” the xe_lrc struct instance 🧚 your main character, fr
  • hwe β€” the xe_hw_engine struct instance πŸ”₯ the hardware engine bestie in question
  • scratch β€” preallocated scratch buffer for temporary storage πŸ“ like a lil sticky note for the kernel, preallocated so nobody's scrambling at runtime

⭐ RETURN ⭐

  • 0 on success β€” we love a clean exit, slay πŸ’…
  • negative error code on failure β€” not the vibe, but at least she tells you 😭

🌈 SEE ALSO 🌈

the whole friend group 🫢 β€” all from the kernel file ./drivers/gpu/drm/xe/xe_lrc.c:

like, that's a whole squad. go read them too, iykyk πŸ‘‘


⚠️ friendly reminder: this is a kernel manpage, section 9, so it's about in-kernel APIs β€” not something you just run in your shell, bestie. respect the kernel space πŸ™ˆ

and that's the tea β˜• β€” brought to you by the fine folks over in ./drivers/gpu/drm/xe, dated October 2026, printed in your very own Kernel API Manual πŸ’– bye bestie, go write some good wa bb setup callbacks πŸŽ€βœ¨πŸ¦‹

πŸ“¦ where this page comes from