On Sat, Feb 16, 2019 at 09:02:05PM -0800, John Nemeth wrote: > On Feb 16, 11:25pm, Kamil Rytarowski wrote: > } Where and how to reserve these major numbers? > > The ideal thing is to not reserve numbers at all and have them > allocated dynamically. This requires the module reporting the > number that was allocated to userland somehow. However, the only > thing that is coming to mind off the top of my head is printf(9) > which would normally land in /var/log/messages.
We have sysctl as an easy an convenient way. Maybe we should think of a standard way to do that there. E.g. like a separate hierarchy for modules and a standard way of naming them. --chris