Am Freitag, 11. Oktober 2002 23:43 schrieb Alan Cox:
> On Fri, 2002-10-11 at 21:30, Oliver Neukum wrote:
> > That is not true. Hotplugging changes it. By assigning new devices
> > to existing device nodes, the kernel _does_ hand out permissions.
>
> Only if you got the design wrong. The kernel should pass hotplug the
> info to create the device nodes.

Then you need a very large number of device numbers.

> If you are dealing with a device where a node might be reused, yes you
> might want to store a generation count and return -EIO if the handle has
> a mismatched generation count.

That you can only do if you have a handle. In which case the problem
is easy. But open() takes only a name. You cannot sanely put a generation
count into that.
IMHO if you reuse device nodes, you have to reset permissions on them
in kernel space.

        Regards
                Oliver



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to