v3d_lookup_bos(9)
π NAME π
okay bestie, welcome to v3d_lookup_bos(9) from the Kernel API Manual π β this one sets up job->bo[] with the GEM objects referenced by the job. That's the whole name-section tea. β¨
β¨ SYNOPSIS β¨
the signature is literally this, no cap:
int v3d_lookup_bos (struct drm_file *file_priv , struct v3d_job *job ,
u64 bo_handles , u32 bo_count );
π ARGUMENTS π
file_privβ DRM file for this fd πjobβ V3D job being set up π οΈbo_handlesβ GEM handles β¨bo_countβ Number of GEM handles passed in π’
π¦ DESCRIPTION π¦
The command validator needs to reference BOs by their index within the submitted job's BO list. This does the validation of the job's BO list and reference counting for the lifetime of the job. So like, it's giving βkeep the BO list valid and keep the refs alive for the job's whole eraβ π.
Note that this function doesn't need to unreference the BOs on failure, because that will happen atv3d_job_free. So bestie, the failure cleanup for the BO unreference is not this function's job βv3d_job_freeis gonna handle it π«Ά.
π SEE ALSO π
go read these next, iykyk:
- Kernel file
./drivers/gpu/drm/v3d/v3d_submit.c v3d_job_reference_bos(9)v3d_submit_cl_ioctl(9)v3d_submit_tfu_ioctl(9)v3d_submit_csd_ioctl(9)v3d_submit_cpu_ioctl(9)
mwah π this page's source is ./drivers/gpu/drm/v3d, its page/version is v3d_lookup_bos(9), and it's dated October 2026 β byeee, go slay your BO lookups π¦π
π¦ 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