vm: fix a null dereference on out-of-memory
[minix.git] / lib / libbdev / const.h
blob89fab89f0c0c2766387d9c85f2e642d3ffb58b49
1 #ifndef _BDEV_CONST_H
2 #define _BDEV_CONST_H
4 #define NR_CALLS 256 /* maximum number of concurrent async calls */
6 #define NO_ID (-1) /* ID for synchronous requests */
8 #define DS_NR_TRIES 100 /* number of times to check endpoint in DS */
9 #define DS_DELAY 50000 /* delay time (us) between DS checks */
11 #define DRIVER_TRIES 10 /* after so many tries, give up on a driver */
12 #define RECOVER_TRIES 2 /* tolerated nr of restarts during recovery */
13 #define TRANSFER_TRIES 5 /* number of times to try transfers on EIO */
15 #define NR_OPEN_DEVS 4 /* maximum different opened minor devices */
17 #endif /* _BDEV_CONST_H */