On Sat, Oct 12, 2002 at 12:21:29AM +0200, Oliver Neukum wrote: > 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.
What? No you don't. But who cares, I'll get random device number generation into the kernel eventually... And this is off topic for this thread :) > > 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. Nope, not going to happen. But I'll save this discussion for later, whenever we get enough code into the kernel to be worrying about this. thanks, greg k-h ------------------------------------------------------- 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
