This new patch is the same as the previous patch, but adds a module parameter "major" to specify the major number (0 for automatic allocation which is the default). For instance, to use dynamic major number allocation: insmod kqemu.ko To use the major number 12: insmod kqemu.ko major=12 I hereby place this patch in the public domain, suitable for inclusion in any GPL'd or non-GPL'd project. Matt. Matthew Mastracci wrote: > Here's a patch for supporting sysfs and udev. There's no conditional > logic - it needs the sysfs stuff to be present in the kernel headers. It > dynamically allocates a major number and stuffs it into a global > variable and uses that to register a device with sysfs. udev will then > pick up the new device and automatically create a new "kqemu" device node. > > Matt.