xe_lrc_setu...with_scratch(9)
β¨ 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β thexe_lrcstruct instance π§ your main character, frhweβ thexe_hw_enginestruct instance π₯ the hardware engine bestie in questionscratchβ preallocated scratch buffer for temporary storage π like a lil sticky note for the kernel, preallocated so nobody's scrambling at runtime
β RETURN β
0on 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:
xe_gt_lrc_hang_replay_size(9)xe_lrc_reg_size(9)xe_lrc_engine_state_size(9)xe_lrc_ctx_timestamp_ggtt_addr(9)xe_lrc_ctx_timestamp_udw_ggtt_addr(9)xe_lrc_ctx_timestamp(9)xe_lrc_queue_timestamp(9)xe_lrc_ctx_job_timestamp_ggtt_addr(9)xe_lrc_ctx_job_timestamp(9)xe_default_lrc_update_memirq_regs_with_address(9)xe_lrc_update_memirq_regs_with_address(9)xe_lrc_set_multi_queue_priority(9)xe_lrc_create(9)xe_lrc_destroy(9)xe_lrc_update_hwctx_regs_with_address(9)xe_lrc_alloc_seqno_fence(9)xe_lrc_free_seqno_fence(9)xe_lrc_init_seqno_fence(9)xe_lrc_engine_id(9)xe_lrc_timestamp(9)xe_lrc_update_timestamp(9)xe_lrc_ring_is_idle(9)
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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms