minix/lib/libblockdriver/const.h
Thomas Veerman 2f65ed8571 all 330 changes
Change-Id: I1728e08622dbdec9bd1e37a9ba6afff80e8fb847
2013-10-24 22:45:07 +00:00

18 lines
492 B
C

#ifndef _BLOCKDRIVER_CONST_H
#define _BLOCKDRIVER_CONST_H
/* Thread stack size. */
#define STACK_SIZE 8192
/* Maximum number of devices supported. */
#define MAX_DEVICES BLOCKDRIVER_MAX_DEVICES
/* The maximum number of worker threads per device. */
#define MAX_WORKERS 32
#define MAX_THREADS (MAX_DEVICES * MAX_WORKERS) /* max nr of threads */
#define MAIN_THREAD (MAX_THREADS) /* main thread ID */
#define SINGLE_THREAD (0) /* single-thread ID */
#endif /* _BLOCKDRIVER_CONST_H */