lkml.org 
[lkml]   [2004]   [Nov]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [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/

\
 
 \ /
  Last update: 2005-03-22 14:08    [W:0.078 / U:5.016 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site