xe_cur_kunit_priv(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 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:

  • NULL if the process is not a kunit test 😭
  • NULL if the current kunit->priv pointer 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