amdgpu_gem_...andles_ioctl(9)
π amdgpu_gem_list_handles_ioctl β Kernel API Manual β¨
okay bestie, so this is a kernel API page, and the star of the show is amdgpu_gem_list_handles_ioctl β it's literally the function that gets you the tea on a process' buffer objects. like, all of them. no cap. π«Ά
πΈ NAME πΈ
amdgpu_gem_list_handles_ioctl β get information about a process' buffer objects. that's it, that's the whole vibe check π
π¦ SYNOPSIS π¦
int amdgpu_gem_list_handles_ioctl (struct drm_device *dev , void *data ,
struct drm_file *filp );
like, look at her. she's an int, she takes three args, she's iconic π
π ARGUMENTS π
devβ drm device pointer. that's the device bestie, the whole reason we're here π«dataβ adrm_amdgpu_gem_list_handles. this is where the actual list situation lives, keep an eye on her πfilpβ drm file pointer. the file, the vibe, the context, y'know? π
π DESCRIPTION π
so here's how it works, and honestly it's giving "two-way street" energy:
num_entries gets set as an input to the size of the entries array. that's you telling the kernel how much room you've got π
then num_entries comes back as output as the number of bos in the process. so the kernel's like "okay here's the real count, bestie" β¨
and here's the important part, don't skip this: if that number is larger than the size of the array, the ioctl must be retried. literally, no shortcuts. call it again with a bigger array or you're not getting the whole picture π
π RETURN π
0for success π-errnofor errors π
that's the whole return situation. simple, clean, slay.
β SEE ALSO β
- Kernel file
./drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c amdgpu_gem_timeout(9)amdgpu_gem_va_update_vm(9)
go read these, they're the friend group π«Ά
π« sign-off π«
this page lives at ./drivers/gpu/drm/amd/amdgpu (source/version), dated October 2026 β so yeah, she's got a timestamp and she's proud of it. anyway bestie, that's the whole manpage, go forth and list those handles πβ¨ππ¦πΈπ
π¦ 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