diff options
author | Christian Brauner <[email protected]> | 2024-06-27 16:11:39 +0200 |
---|---|---|
committer | Christian Brauner <[email protected]> | 2024-06-28 10:36:45 +0200 |
commit | c6269149cbf7053272d918101981869438ff7c1e (patch) | |
tree | 56268222b9012639dff71b6a54f5e756a82ed3cc /tools/perf/scripts/python/parallel-perf.py | |
parent | ff2c570ef7eaa9ded58e7a02dd7a68874a897508 (diff) |
file: add take_fd() cleanup helper
Add a helper that returns the file descriptor and ensures that the old
variable contains a negative value. This makes it easy to rely on
CLASS(get_unused_fd).
Link: https://lore.kernel.org/r/[email protected]
Reviewed-by: Jeff Layton <[email protected]>
Reviewed-by: Josef Bacik <[email protected]>
Reviewed-by: Alexander Mikhalitsyn <[email protected]>
Signed-off-by: Christian Brauner <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/parallel-perf.py')
0 files changed, 0 insertions, 0 deletions