ttm_bo_unpin(9)
π ttm_bo_unpin(9) β the Kernel API Manual era π
okay so bestie. welcome to the ttm_bo_unpin(9) page, straight out of the Kernel API Manual. this is the bit where we let a buffer object be free again, and honestly? it's giving "letting your ex back into the wild" energy. let's get into it β¨
πΈ NAME πΈ
ttm_bo_unpin β unpin the buffer object. that's it. that's the whole name. short, sweet, iconic. π
β¨ SYNOPSIS β¨
void ttm_bo_unpin (struct ttm_buffer_object *bo );
literally one function, one arg, returns nothing (void, so don't go looking for a return value, there isn't one, periodt). π
π¦ ARGUMENTS π¦
boβ the buffer object you're unpinning, bestie. that's the one you're setting free. π«Ά
π₯ DESCRIPTION π₯
so here's the vibe check: this lets the buffer object get evicted again during memory pressure. like, you'd pinned it down (main character behaviour, very possessive), and now you're releasing it so the kernel can actually do its thing when memory gets tight. no cap, it's the un-cling π§
ngl, if you've still got stuff pointed at this buffer, maybe think about that first. this page isn't here to babysit you, it's just telling you what the function does. π
π SEE ALSO π
go read these, iykyk. all of them. no skipping. π
- kernel file
./drivers/gpu/drm/ttm/ttm_bo.c ttm_bo_move_to_lru_tail(9)ttm_bo_set_bulk_move(9)ttm_bo_eviction_valuable(9)ttm_bo_evict_first(9)ttm_bo_alloc_at_place(9)struct ttm_bo_evict_walk(9)ttm_bo_evict_cgroup(9)ttm_bo_pin(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)
and that's the page, bestie π this whole thing lives under ./drivers/gpu/drm/ttm, dated October 2026, and yes the header said ttm_bo_unpin(9) the whole time, we been knew π mwah, go unpin something π
π
π¦ 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