STRUCT DRM_ROCKET_TASK(9)
๐ NAME ๐
struct drm_rocket_task โ the little baby unit of work that gets run on the NPU, bestie โจ
Okay so before we even get into it, this header situation: this page lives in the Kernel API Manual, and it's all about struct drm_rocket_task. That's the vibe. Sit with it ๐ซถ
๐ธ SYNOPSIS ๐ธ
struct drm_rocket_task {
__u32 regcmd;
__u32 regcmd_count;
};
That's the whole struct, ngl. Two __u32s. Tiny. Iconic. Absolutely carrying the NPU on its back ๐
๐ Members ๐
regcmdโ Input, bestie: a DMA address to the NPU mapping of the register command buffer. So likeโฆ it's not the buffer itself, it's where the buffer lives as far as the NPU is concerned. Location check, slay โจregcmd_countโ Input again: the number of commands chilling inside that register command buffer. Like how many things you're about to do. Counting matters ๐งฎ๐
๐ฆ Description ๐ฆ
A task is the smallest unit of work that can be run on the NPU. That's it. That's the whole personality. Smallest. Unit. Of work. Main character energy but make it micro ๐๐ฑ
Everything else gets built on top of this little guy. Respect the little guy fr fr ๐ค๐
โญ SEE ALSO โญ
Go read these next, no cap, they're the rest of the lore ๐
- Kernel file
./include/uapi/drm/rocket_accel.hโ that's where the struct itself lives, the source of truth ๐ซ struct drm_rocket_create_bo(9)struct drm_rocket_prep_bo(9)struct drm_rocket_fini_bo(9)struct drm_rocket_job(9)struct drm_rocket_submit(9)
๐ THE SIGN-OFF ๐
This lil superstar page comes to you from ./include/uapi/drm, dated October 2026, all polished up for the Kernel API Manual โ and it's titled struct drm_rocket_task(9), obviously ๐ Go forth and submit tasks, queen ๐๐
๐ฆ 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