ttm_bo_alloc_at_place(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

okay bestie, this is ttm_bo_alloc_at_place(9) from the Kernel API Manual, and it is literally the page about attempting to allocate a BO’s backing store in a place. no cap, that’s the whole mission. πŸ’…


✨ SYNOPSIS ✨

       int ttm_bo_alloc_at_place (struct ttm_buffer_object *bo , const struct
       ttm_place *place , bool force_space , struct ttm_resource **res , struct
       ttm_bo_alloc_state *alloc_state );

πŸŽ€ ARGUMENTS πŸŽ€

okay, the cast of characters β€” every one of these matters, so don’t skip the vibe check:

  • bo β€” the buffer whose backing store we’re trying to allocate. main character energy fr fr 🫢
  • place β€” the place we’re attempting the allocation in. location, location, location ✨
  • force_space β€” a bool saying if we should evict buffers to force space. yes, it’s giving β€œmake room” πŸ’…
  • res β€” on allocation success, this is where the resulting struct ttm_resource lands. success delivery moment 🎁
  • alloc_state β€” the object holding allocation state, such as charged cgroups. state-keeping icon πŸ‘‘

πŸ’… RETURN πŸ’…

the return values are giving error-code realness, so here’s the exact rundown:

  • -EBUSY β€” no space available, but the allocation should be retried with ttm_bo_evict_alloc. don’t give up yet πŸ‘€
  • -ENOSPC β€” no space available, and the allocation should not be retried. this one’s a hard no πŸ’€
  • -ERESTARTSYS β€” an interruptible sleep was interrupted by a signal. rude interruption behavior 😭

πŸ¦‹ SEE ALSO πŸ¦‹

Kernel file: ./drivers/gpu/drm/ttm/ttm_bo.c β€” that’s where this lives, iykyk. the source is the moment 🌈

the SEE ALSO squad, all icon status:


okay, that’s the whole page, bestie. source/version: ./drivers/gpu/drm/ttm; date on this baddie: October 2026. mwah, periodt πŸ’œπŸ«Ά

πŸ“¦ where this page comes from