ttm_bo_reserve_slowpath(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… ttm_bo_reserve_slowpath β€” Kernel API Manual, bestie edition

okay so real talk, this is ttm_bo_reserve_slowpath(9) from the kernel API manual, and the strict-lore girlies already know this is the redemption-arc function of the TTM buffer object world. let's get into it ✨


🌸 NAME 🌸

ttm_bo_reserve_slowpath β€”

no because the original literally leaves the description blank after that dash 😭 the manpage said "figure it out" and honestly? iconic. anyway the name is the name, and it's the slowpath version of reserving. you'll get it in a sec 🫢


✨ SYNOPSIS ✨

int ttm_bo_reserve_slowpath (struct ttm_buffer_object *bo , bool
interruptible , struct ww_acquire_ctx *ticket );

three args, one int back, no drama πŸ’…


πŸŽ€ ARGUMENTS πŸŽ€

  • bo β€” a pointer to a struct ttm_buffer_object. the buffer object in question, the main character of this whole operation πŸ‘‘
  • interruptible β€” a bool. when it's waiting, it sleeps interruptible if you set this. so like, you can still be woken up while it naps πŸ’€
  • ticket β€” the ticket used to acquire the ww_mutex. yes bestie, the ticket, the whole karma system, it's how the wound/wait mutex does its thing 🎟️

πŸ¦‹ DESCRIPTION πŸ¦‹

kay so here's the lore: this function gets called after ttm_bo_reserve comes back with -EAGAIN and we've backed off from all our other reservations. not me releasing everything before trying again, self-care honestly πŸ§–β€β™€οΈ

and because there are no other reservations held by us at that point, this function cannot deadlock any more. can't deadlock, won't deadlock, periodt. πŸ”₯ no cap, that's the whole point of the back-off β€” you drop your other holds, then you come back for this one clean πŸ’€

fr fr though: -EAGAIN from ttm_bo_reserve β†’ back off from all your other reservations β†’ then ttm_bo_reserve_slowpath because the deadlock risk is gone. that's the vibe check βœ…

🌈 SEE ALSO 🌈

the whole friend group, gathered:

literally all of them, linked and everything, iykyk πŸ’–


⭐ sign-off ⭐

that's the page bestie 🫢 it came from ./include/drm/ttm and it's dated October 2026, so mark your calendar, mwah πŸ’‹

πŸ“¦ where this page comes from