dma_resv_is_locked(9)
π dma_resv_is_locked(9)
okay so bestie, welcome to the Kernel API Manual β¨ β this little angel lives in section 9 of the kernel docs and it's literally just a vibe check for a reservation object π
β¨ NAME β¨
dma_resv_is_locked β is the reservation object locked π
πΈ SYNOPSIS πΈ
bool dma_resv_is_locked (struct dma_resv *obj );
π¦ ARGUMENTS π¦
objβ the reservation object π (yes that's the whole argument list, she's low maintenance)
π DESCRIPTION π
Returns true if the mutex is locked, false if unlocked. That's it, that's the whole tea β no cap, she just tells you the status and dips π§
β SEE ALSO β
Kernel file ./include/linux/dma-resv.h β and the whole squad of associated pages, fr fr:
enum dma_resv_usage(9)dma_resv_usage_rw(9)struct dma_resv(9)struct dma_resv_iter(9)dma_resv_iter_begin(9)dma_resv_iter_end(9)dma_resv_iter_usage(9)dma_resv_iter_is_restarted(9)dma_resv_for_each_fence_unlocked(9)dma_resv_for_each_fence(9)dma_resv_lock(9)dma_resv_lock_interruptible(9)dma_resv_lock_slow(9)dma_resv_lock_slow_interruptible(9)dma_resv_trylock(9)dma_resv_locking_ctx(9)dma_resv_unlock(9)
π reminder bestie: this page is the read-only one. It tells you whether the mutex is locked β it does not lock anything for you. For the actual locking behaviour go read the dma_resv_lock(9) crew above, iykyk π«Ά
and that's the whole page, slay β¨ she was written up in October 2026 and she ships out of ./include/linux β iconic, no notes ππ
π¦ 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