calculate_fr...pages_locked(9)
β¨ NAME β¨
okay so bestie, welcome to the Kernel API Manual, section 9 π β this is calculate_free_list_ready_pages_locked, and honestly? her whole job is iconic: she works out how many free list pages you need to reserve for growing within the FW so you never have to sit around waiting for the host to progress a grow request π no cap, she's the reason you don't stall.
πΈ SYNOPSIS πΈ
u32 calculate_free_list_ready_pages_locked (struct pvr_free_list
*free_list , u32 pages );
π¦ ARGUMENTS π¦
free_listβ a pointer to the free list, periodt. That's the one, that's the girl πpagesβ the total pages currently chillin' in the free list.
π DESCRIPTION π
so here's the tea β β if the threshold or the grow size means less than the alignment size, then the feature is just... not used π. And ngl, the alignment size is 4 pages on Rogue, so keep that number in your head bestie, it matters β¨
π¨ LOCKING VIBE CHECK π¨ β the caller must hold free_list->lock. Like, literally must. Don't come for her without the lock, fr fr π₯
β RETURN β
the number of pages to reserve π«Ά that's it, that's the whole answer, slay.
π SEE ALSO π
- the kernel file itself, main character energy:
./drivers/gpu/drm/imagination/pvr_free_list.c pvr_get_free_list_min_pages(9)pvr_free_list_create(9)pvr_destroy_free_lists_for_file(9)pvr_free_list_put(9)
go read them, iykyk π
mwah π this page lives in ./drivers/gpu/drm/imagination, dated October 2026 β catch you in the next section of the Kernel API Manual, love u, bye π§π
π¦ 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