ttm_bo_alloc_at_place(9)
π 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 resultingstruct ttm_resourcelands. 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 withttm_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:
ttm_bo_move_to_lru_tail(9)ttm_bo_set_bulk_move(9)ttm_bo_eviction_valuable(9)ttm_bo_evict_first(9)struct ttm_bo_evict_walk(9)ttm_bo_evict_cgroup(9)ttm_bo_pin(9)ttm_bo_unpin(9)ttm_bo_alloc_resource(9)ttm_bo_validate(9)ttm_bo_init_reserved(9)ttm_bo_init_validate(9)ttm_bo_unmap_virtual(9)ttm_bo_wait_ctx(9)struct ttm_bo_swapout_walk(9)ttm_bo_swapout(9)ttm_bo_populate(9)
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
- 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