On Mar 1 2007 13:58, Avi Kivity wrote:
fs/char_dev.c:
int register_chrdev(unsigned int major, const char *name,So misc minor numbers under 256 are not supported.
const struct file_operations *fops)
{
struct char_device_struct *cd;
struct cdev *cdev;
char *s;
int err = -ENOMEM;
cd = __register_chrdev_region(major, 0, 256, name);
What's the way out? Increase the region size? I don't know if that's safe.
If it does not increase memory usage, then possibly:
__register_chrdev_region(major, 0, (~0U) & MINORMASK, name);
or (1<<MINORMASK)-1 if that's more clear