xe_kunit_he...ce_test_init(9)
π NAME π
okay so welcome to the Kernel API Manual, bestie π β todayβs page is xe_kunit_he...ce_test_init(9), and the function itβs hyping is xe_kunit_helper_xe_device_test_init β Prepare a &xe_device for a KUnit test. β¨
β¨ SYNOPSIS β¨
int xe_kunit_helper_xe_device_test_init (struct kunit *test );
π§ ARGUMENTS π§
testβ thekunitwhere this fakexe_devicewill be used π«Ά
π DESCRIPTION π
okay so this function allocates and initializes a fake xe_device, then stores its pointer as kunit.priv so the test code can get at it later π no cap, thatβs the whole vibe.
This function can be used directly as a custom implementation of kunit_suite.init β iconic, honestly π
Itβs also possible to prepare a specific variant of the fake xe_device by passing in a kunit.priv pointer to the struct xe_pci_fake_data supplemented with desired parameters prior to calling this function π
And heads up: this function uses KUNIT_ASSERT to detect any failures. Itβs not shy about it, fr fr π
π RETURN π
Always 0. literally always β periodt π
π¦ SEE ALSO π¦
- Kernel file
./drivers/gpu/drm/xe/tests/xe_kunit_helpers.cπ xe_kunit_helper_alloc_xe_device(9)xe_kunit_helper_xe_device_live_test_init(9)
mwah π sign-off time: the source/version line says ./drivers/gpu/drm/xe/tests, the date is October 2026, and the page title is xe_kunit_he...ce_test_init(9) β slay, bye bestie πΈ
π¦ 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