1 #ifndef _BLOCKDRIVER_CONST_H
2 #define _BLOCKDRIVER_CONST_H
4 /* Thread stack size. */
5 #define STACK_SIZE 8192
7 /* Maximum number of devices supported. */
10 /* The maximum number of worker threads per device. */
11 #define MAX_WORKERS 32
13 #define MAX_THREADS (MAX_DEVICES * MAX_WORKERS) /* max nr of threads */
14 #define MAIN_THREAD (MAX_THREADS) /* main thread ID */
15 #define SINGLE_THREAD (0) /* single-thread ID */
17 #endif /* _BLOCKDRIVER_CONST_H */