calculate_fr...pages_locked(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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 🌈

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