vc4_cl_lookup_bos(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… vc4_cl_lookup_bos πŸ’…

okay bestie, welcome to the Kernel API Manual entry for vc4_cl_lookup_bos β€” yes that's the whole title, and yes it's a lot of consonants, but we're gonna get through it together 🫢


🌸 NAME 🌸

vc4_cl_lookup_bos β€” sets up exec->bo[] with the GEM objects that the job references. literally that's her whole job, and she ate ✨


πŸŽ€ SYNOPSIS πŸŽ€

int vc4_cl_lookup_bos (struct drm_device *dev , struct drm_file
*file_priv , struct vc4_exec_info *exec );

that's the whole signature, no cap. three pointers in, one int out πŸ’«


πŸ¦‹ ARGUMENTS πŸ¦‹

  • dev β€” the DRM device. main character of the hardware world πŸ’»
  • file_priv β€” the DRM file for this fd. her personal file, iykyk πŸ—‚οΈ
  • exec β€” the V3D job being set up. this is the one we're dressing up for the runways πŸ‘‘

πŸ”₯ DESCRIPTION πŸ”₯

so here's the vibe check: the command validator needs to reference BOs by their index within the submitted job's BO list. not by name, not by pointer, by index. periodt πŸ’…

and that's exactly what this function does β€” it does the validation of the job's BO list, and it handles the reference counting for the lifetime of the job. so the whole time that job is alive, the refs are held down. iconic behavior, honestly πŸŽ€

ngl the refcounting part is the important bit β€” she's holding the door open for those objects for as long as the job needs them πŸ”’

🌈 SEE ALSO 🌈

go read those next bestie, they're in the same friend group 🧚


and that's the page!! πŸ“ this little love letter lives in ./drivers/gpu/drm/vc4, dated October 2026, from the Kernel API Manual β€” vc4_cl_lookup_bos(9) and out πŸ’œβ­

πŸ“¦ where this page comes from