xe_hw_engine_lookup(9)
π xe_hw_engine_lookup(9) β the Kernel API Manual glow-up π
okay so bestie, welcome to the Kernel API Manual, specifically the page for xe_hw_engine_lookup β and yes she's a function, and yes she's iconic for exactly one job. let's get into it π¦
β¨ NAME β¨
xe_hw_engine_lookup β Lookup hardware engine for class:instance
like, that's literally her whole personality. she looks up a hardware engine. slay.
πΈ SYNOPSIS πΈ
struct xe_hw_engine * xe_hw_engine_lookup (struct xe_device *xe , struct
drm_xe_engine_class_instance eci );
no cap, that's the whole signature. she takes two things and hands you back a pointer (or doesn't β we'll get there, don't rush her π).
π ARGUMENTS π
xeβ the xe device π₯οΈ (your whole device situation, the main character)eciβ engine class and instance π― (the specific vibe you're hunting for)
π DESCRIPTION π
This function will find a hardware engine for given engine class and instance. that's it. that's the tea β she takes your xe device, she takes your eci, and she goes looking for the matching hardware engine. lowkey the most straightforward bestie in the whole driver, and honestly? we stan a function with clear boundaries π
π₯ RETURN π₯
- If found β a
xe_hw_enginepointer π (bestie delivered) - Otherwise β
NULLπ (she looked. it wasn't there. no drama, justNULL)
π SEE ALSO π
- Kernel file
./drivers/gpu/drm/xe/xe_hw_engine.cβ go read the source, iykyk π xe_hw_engine_mmio_read32(9)xe_hw_engine_snapshot_capture(9)xe_hw_engine_snapshot_free(9)xe_hw_engine_print(9)
like, the whole friend group fr fr π«Ά go say hi to all of them.
ngl bestie, if you get aNULLback, that's not a bug in your code β that's just her telling you that class:instance combo does not exist π check yourecibefore you spiral π
β¨ mwah β¨ that's the page! brought to you from ./drivers/gpu/drm/xe, dated October 2026, and it's called xe_hw_engine_lookup(9) in case you forgot already ππ see u in the next man page bestie, stay hydrated and always check your return values π§β
π¦ 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