/dev/one support ?

Matthew Dillon dillon at apollo.backplane.com
Mon May 15 09:18:00 PDT 2006


:I have been trying to hack in support for /dev/one.  I'm looking for
:some tips on what to try next.

    Well, I don't know why you would want a /dev/one, but the only thing
    you are missing is the make_dev() call.  Check out around line 523
    in i386/i386/mem.c.  You need to register the minor device there in
    mem_drvinit() for the system to be able to find it.

    Also note that the memory major device is shared by a number of 
    subsystems.  That bit of code is using a mask of 0xF0 so that
    data space for the make_dev() calls is really only 0-15.  The
    perfmon (i386/i386/perfmon.c) uses 16-31.  I'm not sure what other
    devices might be using minor numbers under the memory major number.

						-Matt





More information about the Kernel mailing list