1 | /* SPDX-License-Identifier: GPL-2.0 */ |
---|---|
2 | #ifndef _BCACHEFS_THREAD_WITH_FILE_TYPES_H |
3 | #define _BCACHEFS_THREAD_WITH_FILE_TYPES_H |
4 | |
5 | #include "darray.h" |
6 | |
7 | struct stdio_buf { |
8 | spinlock_t lock; |
9 | wait_queue_head_t wait; |
10 | darray_char buf; |
11 | }; |
12 | |
13 | struct stdio_redirect { |
14 | struct stdio_buf input; |
15 | struct stdio_buf output; |
16 | |
17 | spinlock_t input_lock; |
18 | wait_queue_head_t input_wait; |
19 | darray_char input_buf; |
20 | bool done; |
21 | }; |
22 | |
23 | #endif /* _BCACHEFS_THREAD_WITH_FILE_TYPES_H */ |
24 |