amdgpu_cs_get_fence(9)
π amdgpu_cs_get_fence β the Kernel API Manual β¨
Okay bestie, so this page is from the Kernel API Manual β it's amdgpu_cs_get_fence(9), a little helper function living in the AMD GPU driver, and honestly it's giving "small but crucial" energy. π Let's get into it.
β¨ NAME β¨
amdgpu_cs_get_fence β the helper that grabs a fence for you out of a drm_amdgpu_fence. No cap, that's literally its whole job. π¦
πΈ SYNOPSIS πΈ
struct dma_fence * amdgpu_cs_get_fence (struct amdgpu_device *adev ,
struct drm_file *filp , struct drm_amdgpu_fence *user );
Write it exactly like that, bestie β those commas and spaces are staying where they are. π
π ARGUMENTS π
Three arguments, three vibes, let's go:
adevβ the amdgpu device. The main character, the actual hardware situation. π₯filpβ the file private. Your file's own private little data, iykyk. πuserβ thedrm_amdgpu_fencecopied from user space. Yes, copied from user space β that's the whole point. β
π¦ SEE ALSO π¦
All the related reading, so you can go be nosy in the source too:
- Kernel file
./drivers/gpu/drm/amd/amdgpu/amdgpu_cs.cβ the actual home of this function, go peek π amdgpu_cs_wait_ioctl(9)amdgpu_cs_wait_all_fences(9)amdgpu_cs_wait_any_fence(9)amdgpu_cs_wait_fences_ioctl(9)amdgpu_cs_find_mapping(9)
π Friendly little note: this page is under ./drivers/gpu/drm/amd/amdgpu β that's the directory it belongs to, just so you know where to find it. π«Ά
And that's the whole page, bestie β short, sweet, and absolutely iconic for what it is. π This one's from the Kernel API Manual, path ./drivers/gpu/drm/amd/amdgpu, dated October 2026, and it's filed under amdgpu_cs_get_fence(9). Slay, go read amdgpu_cs.c now. πππΈ
π¦ 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