1 #ifndef _BLOCKDRIVER_CONST_H 2 #define _BLOCKDRIVER_CONST_H 3 4 /* Thread stack size. */ 5 #define STACK_SIZE 8192 6 7 /* Maximum number of devices supported. */ 8 #define MAX_DEVICES BLOCKDRIVER_MAX_DEVICES 9 10 /* The maximum number of worker threads per device. */ 11 #define MAX_WORKERS 32 12 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 */ 16 17 #endif /* _BLOCKDRIVER_CONST_H */ 18