summaryrefslogtreecommitdiff
path: root/minix/lib/libblockdriver/const.h
blob: 4bba78001f1f26b1975e618c82122aedf7366fd3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#ifndef _BLOCKDRIVER_CONST_H
#define _BLOCKDRIVER_CONST_H

/* Thread stack size. */
#ifdef _MINIX_MAGIC
#define STACK_SIZE	32768
#else
#define STACK_SIZE	8192
#endif

/* 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 */