xe_pci_live_...ce_gen_param(9)
π xe_pci_live_...ce_gen_param(9) β from the Kernel API Manual, bestie π
okay so real talk, this is a page from the Kernel API Manual and it's all about xe_pci_live_device_gen_param, which is genuinely one of those helper functions that makes your life so much easier if you're doing KUnit stuff β¨ no cap.
β¨ NAME β¨
xe_pci_live_device_gen_param β literally the helper that iterates over Xe devices so you can use them as KUnit parameters π¦ (yes, that's its whole job, and it ate π
)
πΈ SYNOPSIS πΈ
const void * xe_pci_live_device_gen_param (struct kunit *test , const void *prev , char *desc );
π ARGUMENTS π
testβ the test context object, your lil home base for the test run π«Άprevβ the value that got returned last time around, orNULLif this is the very first iteration (first-time energy, main character moment β)descβ the buffer where a parameter name goes π
π DESCRIPTION π
So what it does is: it iterates over all the available Xe devices on the system, and it uses the device name as the parameter name. That's it, that's the vibe check and it passed β
Heads up bestie: this is to be used only as a parameter generator function in KUNIT_CASE_PARAM β like, that's its one job, don't be trying to use it for anything else π
π₯ RETURN π₯
You get a pointer to the next struct xe_device all ready to be used as a parameter π« β or NULL if there are no more Xe devices on the system, at which point the iteration is done and you can go touch grass π
π SEE ALSO π
- Kernel file
./drivers/gpu/drm/xe/tests/xe_pci.cπ xe_pci_fake_data_gen_params(9)xe_pci_fake_data_desc(9)xe_pci_graphics_ip_gen_param(9)xe_pci_media_ip_gen_param(9)xe_pci_id_gen_param(9)
and that's the page!! π§ from ./drivers/gpu/drm/xe/tests, dated October 2026 β go forth and iterate, bestie, you've got this fr fr ππβ¨
π¦ 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