DragonFly BSD
DragonFly kernel List (threaded) for 2006-05
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: /dev/one support ?


From: Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxx>
Date: Mon, 15 May 2006 09:15:14 -0700 (PDT)

: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



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]