dma_resv_lock_interruptible(9)
π
dma_resv_lock_interruptible(9) π
okay so bestie, welcome to the Kernel API Manual page for dma_resv_lock_interruptible β this one is literally βlock the reservation object,β and weβre keeping every detail cute, intact, and fr fr useful. π
π NAME π
dma_resv_lock_interruptible β lock the reservation object. no cap, thatβs the whole name vibe. π
β¨ SYNOPSIS β¨
int dma_resv_lock_interruptible (struct dma_resv *obj , struct
ww_acquire_ctx *ctx );
π«Ά ARGUMENTS π«Ά
objβ the reservation object. the main character youβre locking. πctxβ the locking context. the little sidekick carrying the context energy. β¨
π DESCRIPTION π
okay so hereβs the tea: this locks the reservation object interruptible for exclusive access and modification. π
important note, bestie: the lock is only against other writers. readers will run concurrently with a writer under RCU. the seqlock is used to notify readers if they overlap with a writer. thatβs the whole vibe check. π₯
since the reservation object may be locked by multiple parties in an undefined order, a #ww_acquire_ctx is passed to unwind if a cycle is detected. see ww_mutex_lock and ww_acquire_init. also, a reservation object may be locked by itself by passing NULL as ctx. lowkey iconic. πΈ
when a die situation is indicated by returning -EDEADLK, all locks held by ctx must be unlocked and then dma_resv_lock_slow_interruptible called on obj. do not skip that part β itβs giving mandatory cleanup. π
unlocked by calling dma_resv_unlock. periodt. π
π SEE ALSO π
- Kernel file
./include/linux/dma-resv.henumdma_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_slow(9)dma_resv_lock_slow_interruptible(9)dma_resv_trylock(9)dma_resv_is_locked(9)dma_resv_locking_ctx(9)dma_resv_unlock(9)
xoxo, this page is sourced from ./include/linux and dated October 2026 π¦ keeping the dma_resv_lock_interruptible(9) energy alive, fr fr π
π¦ 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