Subject: Re: caddr_t removal Q
To: None <tech-kern@netbsd.org>
From: Allen Briggs <briggs@netbsd.org>
List: tech-kern
Date: 03/13/2007 15:08:15
On Tue, Mar 13, 2007 at 11:41:07AM -0700, Jason Thorpe wrote:
> On Mar 13, 2007, at 11:26 AM, Allen Briggs wrote:
> >It does look like caddr_t was used in a variety of ways. It still seems
> >that it would make sense to have a standard type for a pointer that you
> >can do byte-wise arithmetic with.
>
> It's called vaddr_t
Which isn't a pointer. But that's probably OK for most things.
Casts are not totally evil (but they can make things hard to read
and can hide errors when they're improperly used).
paddr_t might also be a candidate for some of the uses.
-allen
--
Allen Briggs | http://www.ninthwonder.com/~briggs/ | briggs@ninthwonder.com