Merge tag 'trace-printf-v6.13' of git://git.kernel.org/pub/scm/linux/kernel/git/trace...
[drm/drm-misc.git] / drivers / md / dm-vdo / thread-utils.h
blob687ab43e2cee45a600a1aab4c98f9b98e6d66dfc
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /*
3 * Copyright 2023 Red Hat
4 */
6 #ifndef THREAD_UTILS_H
7 #define THREAD_UTILS_H
9 #include <linux/atomic.h>
11 /* Thread and synchronization utilities */
13 struct thread;
15 void vdo_initialize_threads_mutex(void);
16 int __must_check vdo_create_thread(void (*thread_function)(void *), void *thread_data,
17 const char *name, struct thread **new_thread);
18 void vdo_join_threads(struct thread *thread);
20 #endif /* UDS_THREADS_H */