xe_pci_live_...ce_gen_param(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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, or NULL if 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 πŸ‘‘


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