Re: [PATCH] [Request for inclusion] Filesystem in Userspace

From: Miklos Szeredi
Date: Tue Nov 16 2004 - 14:11:46 EST



> > So if I only need a single device number should I register a "misc"
> > device? misc_register() seems to create the relevant sysfs entry.
>
> Yes, that is a good way to get a device, without having to reserve a
> number.

No, I think reserving a number is still necessary: there seems to be
only a very small space for dynamically registered misc devices (max
15), so that's not any better than reserving a static one.

I just don't yet see the big picture WRT device number allocation.

So what I'm interested in, is if I get a reserved minor number for the
misc (major=10) device, will I be kicked in the butt (by Linus or
anybody else) like for the /proc approach?

Thanks
Miklos
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/