drm_exec_prepare_array(9)
π drm_exec_prepare_array(9) π
okay so bestie, welcome to the Kernel API Manual β¨ β yes we're in the kernel docs now, and honestly? we're thriving. this one's all about drm_exec_prepare_array, which is literally the helper that prepares a whole array of objects for you. no cap. π«Ά
β¨ NAME β¨
drm_exec_prepare_array β the helper to prepare an array of objects πΈ
π SYNOPSIS π
int drm_exec_prepare_array (struct drm_exec *exec , struct
drm_gem_object **objects , unsigned int num_objects , unsigned int
num_fences );
π¦ ARGUMENTS π¦
execβ thedrm_execobject holding the state, she's the main character here πobjectsβ array of GEM objects to prepare, the whole squad πnum_objectsβ how many GEM objects are in that array, like, the headcountnum_fencesβ number of fences to reserve on each GEM object π₯
π DESCRIPTION π
So what it does is prepare all the GEM objects in an array β the entire lineup, not just one β and it aborts on the first error, like "nope, we're done here" π. After locking each GEM object, it reserves num_fences on it. periodt. π
π₯ RETURN π₯
-EDEADLOCKβ on contention (it's giving drama π)-EALREADYβ when the object is already locked-ENOMEMβ when memory allocation failed0β for success β¨ slay
π SEE ALSO π
Kernel file ./drivers/gpu/drm/drm_exec.c Overview(9), drm_exec_init(9), drm_exec_fini(9), drm_exec_cleanup(9), drm_exec_lock_obj(9), drm_exec_unlock_obj(9), drm_exec_prepare_obj(9) β go read them, iykyk π
and that's the page, bestie! π§ this gorgeous little manual comes from ./drivers/gpu/drm and it's dated October 2026 β literally iconic, no notes ππ
π¦ 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