STRUCT DRM_ROCKET_SUBMIT(9)
π struct drm_rocket_submit(9) β the Kernel API Manual moment
okay so bestie, we're in the Kernel API Manual today and the star of the show is struct drm_rocket_submit β¨
π NAME π
struct drm_rocket_submit β the ioctl argument for submitting commands to the NPU. that's it, that's the whole vibe π«Ά
πΈ SYNOPSIS πΈ
struct drm_rocket_submit {
__u64 jobs;
__u32 job_count;
__u32 job_struct_size;
__u64 reserved;
};
look at her. four fields. flawless. no notes π
π¦ Members π¦
jobsβ Input: a pointer to an array ofstruct drm_rocket_job. it's giving "here's my to-do list" πjob_countβ Input: the number of jobs you're passing in. literally just how many bestie πjob_struct_sizeβ Input: the size in bytes of the structs sitting in thejobsfield. yes, in bytes. we measure in bytes here π₯reservedβ reserved, and it must be zero. no exceptions, no "but what if", zero. periodt π
β Description β
the kernel will schedule the execution of these jobs in dependency order. not me thinking that's the most iconic scheduling behaviour ever β it respects the timeline fr fr π
π SEE ALSO π
- Kernel file
./include/uapi/drm/rocket_accel.hstructdrm_rocket_create_bo(9) struct drm_rocket_prep_bo(9)struct drm_rocket_fini_bo(9)struct drm_rocket_task(9)struct drm_rocket_job(9)
go read them, they're all icons in their own right π§
lowkey a whole family of structs and every single one of them ate π
and that's the page!! mwah π β sourced straight from ./include/uapi/drm, dated October 2026, and it's struct drm_rocket_submit(9) forever and always πβ¨
π¦ 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