aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/libxed.py
diff options
context:
space:
mode:
authorJonathan Cameron <[email protected]>2024-01-28 15:05:28 +0000
committerJonathan Cameron <[email protected]>2024-02-17 16:16:10 +0000
commit1dae0cb79ceacbdc7495c5f83ca71e1c12a24d7c (patch)
treec2ee697e2469e73f81cd1c516405f8308d9701d0 /tools/perf/scripts/python/libxed.py
parentf7b6443f347dd5fdbee15a15f457db83f1426328 (diff)
iio: locking: introduce __cleanup() based direct mode claiming infrastructure
Allows use of: iio_device_claim_direct_scoped(return -EBUSY, indio_dev) { } to automatically call iio_device_release_direct_mode() based on scope. Typically seen in combination with local device specific locks which are already have automated cleanup options via guard(mutex)(&st->lock) and scoped_guard(). Using both together allows most error handling to be automated. Reviewed-by: Nuno Sa <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jonathan Cameron <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/libxed.py')
0 files changed, 0 insertions, 0 deletions