aboutsummaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/proc.py
diff options
context:
space:
mode:
authorWedson Almeida Filho <[email protected]>2023-03-27 15:43:08 -0300
committerMiguel Ojeda <[email protected]>2023-04-22 01:46:30 +0200
commite32cca32c3d452a277884502b9155f3325caf80e (patch)
tree23cb2737222c1585c8ac6a0c2e64045503f28c69 /scripts/gdb/linux/proc.py
parent7b1f55e3a984aaed0121f90f9f8580f18b7b561e (diff)
rust: lock: add `Guard::do_unlocked`
It releases the lock, executes some function provided by the caller, then reacquires the lock. This is preparation for the implementation of condvars, which will sleep after between unlocking and relocking. We need an explicit `relock` method for primitives like `SpinLock` that have an irqsave variant: we use the guard state to determine if the lock was originally acquired with the regular `lock` function or `lock_irqsave`. Reviewed-by: Martin Rodriguez Reboredo <[email protected]> Signed-off-by: Wedson Almeida Filho <[email protected]> Link: https://lore.kernel.org/rust-for-linux/[email protected]/ [ Removed the irqsave bits as discussed. ] Signed-off-by: Miguel Ojeda <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/proc.py')
0 files changed, 0 insertions, 0 deletions