Messages in this thread | | | Date | Tue, 16 Nov 2004 11:16:43 -0800 | From | Greg KH <> | Subject | Re: [PATCH] [Request for inclusion] Filesystem in Userspace |
| |
On Tue, Nov 16, 2004 at 08:09:10PM +0100, Miklos Szeredi wrote: > > > > 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.
So reserve a minor number of the misc class. Ask LANNANA for a number and you should be fine.
> 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?
Depends on what your /dev node is trying to do. What is is doing anyway? Any ioctls? Any wierd, non-chardev like things?
Again, inline code would have been nice to see so those of us who live in our email clients could have reviewed it...
thanks,
greg k-h - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |