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

From: Greg KH
Date: Tue Nov 16 2004 - 11:43:54 EST


On Tue, Nov 16, 2004 at 03:01:10PM +0100, Miklos Szeredi wrote:
> > "fuse/version" you have in /proc while it belongs to /proc
> > "fuse/dev" you have in /proc while it belongs to /dev
>
> Well, 'Documentation/devices.txt' says:
>
> THE DEVICE REGISTRY IS OFFICIALLY FROZEN FOR LINUS TORVALDS' KERNEL
> TREE. At Linus' request, no more allocations will be made official
> for Linus' kernel tree; the 3 June 2001 version of this list is the
> official final version of this registry.

Not true, you can get new numbers.

Don't put things that should be in /dev into /proc, not allowed.

> So placing it in /proc doesn't seem to me such a bad idea.

No. Actually, put it in sysfs, and then udev will create your /dev node
for you automatically. And in sysfs you can put your other stuff
(version, etc.) which is the proper place for it.

thanks,

greg k-h
-
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/