xe_hw_engin...s_sysfs_init(9)
π NAME π
xe_hw_engine_class_sysfs_init β init HW engine classes on GT π
(also hi bestie, this page is straight out of the Kernel API Manual, section 9, and it's giving very much "small function, big responsibilities" energy π¦)
β¨ SYNOPSIS β¨
int xe_hw_engine_class_sysfs_init (struct xe_gt *gt );
πΈ ARGUMENTS πΈ
gtβ the Xe GT. that's it, that's the whole argument. one (1) thing. iconic of it honestly π
π DESCRIPTION π
okay so here's the tea β β this routine creates sysfs for HW engine classes, and then it adds methods to get/set different scheduling properties for HW engine class.
so like: sysfs gets built, and then the scheduling-property getters and setters come along for the ride. both things, one function, no cap. π«Ά
π₯ RETURN π₯
- returns an error value when it fails π
- returns
0for success π
(vibe check: zero means we ate. anything else means we did not. π)
π¦ SEE ALSO π¦
- Kernel file
./drivers/gpu/drm/xe/xe_hw_engine_class_sysfs.cβ the actual home of this whole situation xe_hw_engine_timeout_in_range(9)β another page, go read it, iykyk β¨
ngl bestie, if you're calling this, double-check your struct xe_gt * first β passing a bogus pointer is not the main character move you think it is π
later besties π β this one comes to you from ./drivers/gpu/drm/xe, dated October 2026, and yeah, the page header still says xe_hw_engin...s_sysfs_init(9) because even kernel docs get a little truncated sometimes πβοΈ
π¦ 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