amdgpu_preempt_mgr_new(9)
β¨ amdgpu_preempt_mgr_new(9) β¨
Hey bestie, welcome to the Kernel API Manual π this one's a function called amdgpu_preempt_mgr_new and honestly? It's giving "fake it till you make it" energy, but in the most iconic way. Let's get into it π
πΈ SYNOPSIS πΈ
int amdgpu_preempt_mgr_new (struct ttm_resource_manager *man , struct
ttm_buffer_object *tbo , const struct ttm_place *place , struct
ttm_resource **res );
Like, four whole arguments, returns an int, we love a classic signature π«Ά
π ARGUMENTS π
manβ the TTM memory type manager. She's the boss of this whole memory type, okurrr πtboβ the TTM BO (buffer object) that we need this range for. Like, who's asking? This baddie right here β¨placeβ the placement flags and restrictions. Basically the vibe check for where things can go πresβ the TTM memory object. The output slot, lowkey the main character of the out-params π
π¦ DESCRIPTION π¦
So here's the tea β this function is a dummy. Yep, literally. It doesn't allocate any resources and it doesn't impose any limit β all it does is count the space used. That's it. That's the whole function. No cap π
Think of it as a little tally-counter bestie who just keeps track of how much is being used without actually doing the heavy lifting. She's not allocating, she's not restricting, she's just... counting π and honestly? Respect. Slay, little dummy function, slay π
Fr fr, don't come here expecting real allocation β that is not the vibe of this one π
π₯ SEE ALSO π₯
- Kernel file
./drivers/gpu/drm/amd/amdgpu/amdgpu_preempt_mgr.cβ the source file, go read it, she's iconic π mem_info_preempt_used(9)amdgpu_preempt_mgr_sysfs_fini(9)amdgpu_preempt_mgr_del(9)amdgpu_preempt_mgr_init(9)amdgpu_preempt_mgr_fini(9)
Go check out the whole preempt mgr friend group, they all ate π β¨
π§ Sign-off π§
This little page lives over in ./drivers/gpu/drm/amd/amdgpu, and the version tagged on it is October 2026 π so like, a lil' peek into the future, periodt. Catch you in the next manpage, bestie β mwah! πΈπ¦π
π¦ 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