xe_cur_kunit_priv(9)
πΈ NAME πΈ
xe_cur_kunit_priv β bestie, this is the little helper that grabs the struct xe_test_priv that current->kunit->priv is pointing at, but only if that thing actually exists and it's embedded in the expected subclass π
β¨ SYNOPSIS β¨
struct xe_test_priv * xe_cur_kunit_priv (enum xe_test_priv_id id );
π ARGUMENTS π
idβ the id of the expected subclass π like, this is the vibe check for which subclass we're expecting.
π¦ RETURN π¦
Okay so here's the tea, it can come back as NULL in two whole situations:
NULLif the process is not a kunit test πNULLif the currentkunit->privpointer is not pointing to an object of the expected subclass π
Otherwise? You get a pointer to the embedded struct xe_test_priv β slay β¨
π₯ SEE ALSO π₯
- Kernel file
./drivers/gpu/drm/xe/tests/xe_test.h struct xe_test_priv(9)
That's the whole page, bestie β no cap, every detail is right there π«Ά
Source/version vibes: ./drivers/gpu/drm/xe/tests, dated October 2026 π and yes, the manual name is Kernel API Manual β iconic little header energy β¨
π¦ 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