STRUCT DRM_ROCKET_PREP_BO(9)
π struct drm_rocket_prep_bo(9) π
okay so bestie, welcome to the Kernel API Manual β¨ β this is the page for struct drm_rocket_prep_bo, and it's literally the ioctl argument for starting CPU ownership of the BO. yes, THE argument. main character struct energy fr fr π
πΈ NAME πΈ
struct drm_rocket_prep_bo β the ioctl argument for starting CPU ownership of the BO. that's the whole vibe. that's the assignment. π
β¨ SYNOPSIS β¨
struct drm_rocket_prep_bo {
__u32 handle;
__u32 reserved;
__s64 timeout_ns;
};
look at her. three members. flawless. no notes. π
π¦ Members π¦
handleβ Input: the GEM handle of the buffer object. this is the which buffer field, iykyk π₯reservedβ Reserved, must be zero. and like... she MEANS it, bestie. not "probably zero", not "zero-ish". zero. don't be quirky with this one π«Άtimeout_nsβ Input: the amount of time to wait for NPU jobs. yes the_nsis nanoseconds, she's precise like that β
π§ Description π§
so what does she actually do? she takes care of waiting for any NPU jobs that might still be using the NPU β like, all of them, no job left behind π β and then she performs cache synchronization. that's it, that's the whole job. waiting + syncing. iconic behaviour honestly π
ngl this is the "bestie hold on, let me make sure nothing's still touching the NPU" step. cache sync included. do not skip her. π
π SEE ALSO π
- Kernel file
./include/uapi/drm/rocket_accel.h struct drm_rocket_create_bo(9)struct drm_rocket_fini_bo(9)struct drm_rocket_task(9)struct drm_rocket_job(9)struct drm_rocket_submit(9)
go read the whole friend group, they're all linked and they all slay in their own way ππ¦πΈ
and that's the page, bestie!! π this one lives in ./include/uapi/drm, dated October 2026 β mwah, go prep that BO, ily, bye πβ¨π
π¦ 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