Messages in this thread | | | Date | Tue, 15 Dec 2009 23:56:39 +0000 | From | Alan Cox <> | Subject | Re: [PATCH 3/3] misc: use a proper range for minor number dynamic allocation |
| |
What I have been doing in response to requests for misc device allocations is to suggest people simply go and allocate some dynamic device space. There are very very few cases a misc device needs a specific minor and the large dynamic device space has really made misc a "historical" entity which should be treated that way.
If you want 2048 minors for a random new device, the kernel will just magic them for you, udev will magic the device nodes, and the tmpfs will handle it nicely
(and if your udev isn't on its own private file system then I hope its an old one, because the current one has a hole in it, which doesn't seem to have been fixed yet)
Alan
| |