Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 13 May 2000 22:45:40 +0200
From:      Poul-Henning Kamp <phk@critter.freebsd.dk>
To:        Peter Wemm <peter@netplex.com.au>
Cc:        obrien@FreeBSD.org, cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src/sys/alpha/alpha mem.c 
Message-ID:  <551.958250740@critter.freebsd.dk>
In-Reply-To: Your message of "Sat, 13 May 2000 13:41:02 PDT." <20000513204102.7508C1CDF@overcee.netplex.com.au> 

next in thread | previous in thread | raw e-mail | index | archive | help
In message <20000513204102.7508C1CDF@overcee.netplex.com.au>, Peter Wemm writes
:
>"David O'Brien" wrote:
>> On Sat, May 13, 2000 at 12:43:00AM -0700, Peter Wemm wrote:
>> >   Log:
>> >   There are still too many diffs relative to the i386 version.
>> 
>> Couldn't the two be merged?  (perhaps with just a very few #ifdef's)
>
>More of it maybe, but take (for instance) the physical addresses. They
>are 32bit vs. 64 bit.  /dev/mem and /dev/kmem are different too.
>
>IMHO, /dev/null, /dev/zero, /dev/[u]random etc have no business being in
>the same driver as /dev/[k]mem.  I think *that* is the basic mistake here.
>Everything but mem/kmem should be in a MI "misc devices" driver.

The fact that they are is a relic of them sharing one major number.
 
We don't need to use the same devsw{} for all minors of the same major
today, so abstracting null, zero and the randoms out to some MI place
would be simple.  
 
Interested Junior Kernel Hackers can apply here.
  
Poul-Henning

--
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk@FreeBSD.ORG         | TCP/IP since RFC 956
FreeBSD coreteam member | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?551.958250740>