From: Badari Pulavarty <pbadari@us.ibm.com>
Since we have larger dev_t now, here is the patch to support large
number of RAW devices. The userlevel command "raw" also needs changes to
use this support - which in turn needs new glibc.
Once bound, I/O against /dev/raw/rawN uses efficient zero-copy I/O.
See the raw(8) manpage for more details.
+config MAX_RAW_DEVS
+ int "Maximum number of RAW devices to support (1-8192)"
+ depends on RAW_DRIVER
+ default "256"
+ help
+ The maximum number of RAW devices that are supported.
+ Default is 256. Increase this number in case you need lots of
+ raw devices.
+
config HANGCHECK_TIMER
tristate "Hangcheck timer"
depends on X86_64 || X86
#include <asm/uaccess.h>
-#define MAX_RAW_MINORS 256
-
struct raw_device_data {
struct block_device *binding;
int inuse;
__u64 block_minor;
};
+#define MAX_RAW_MINORS CONFIG_MAX_RAW_DEVS
+
#endif /* __LINUX_RAW_H */