v3d_lookup_bos(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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 at v3d_job_free. So bestie, the failure cleanup for the BO unreference is not this function's job β€” v3d_job_free is gonna handle it 🫢.

🌈 SEE ALSO 🌈

go read these next, iykyk:


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