1 #ifndef _BLOCKDRIVER_CONST_H
2 #define _BLOCKDRIVER_CONST_H
4 /* Thread stack size. */
6 #define STACK_SIZE 32768
8 #define STACK_SIZE 8192
11 /* Maximum number of devices supported. */
12 #define MAX_DEVICES BLOCKDRIVER_MAX_DEVICES
14 /* The maximum number of worker threads per device. */
15 #define MAX_WORKERS 32
17 #define MAX_THREADS (MAX_DEVICES * MAX_WORKERS) /* max nr of threads */
18 #define MAIN_THREAD (MAX_THREADS) /* main thread ID */
19 #define SINGLE_THREAD (0) /* single-thread ID */
21 #endif /* _BLOCKDRIVER_CONST_H */