cvs commit: src/lib/libmemstat memstat_malloc.c

Joerg Sonnenberger joerg at britannica.bec.de
Tue May 22 19:46:45 UTC 2007


On Wed, May 23, 2007 at 05:13:46AM +1000, Bruce Evans wrote:
> Again, the type mismatches have very little to do with const.  libkvm
> requires kernel addresses to be represented as unsigned longs, while
> libmemstat requires kernel addresses to be represented as "void *"s or
> "const void *"s.  Neither of these requirements is very good, and
> libmemstat's requirement is a regression if anything, since the kernel
> address space might be segmented or otherwise magic and thus unrepresentable
> by userland pointers.

Or more trivially, the kernel address space can be 64bit and the
userland 32bit. But I guess that is something noone cared so far. PAE is
another good example of why this is not as uncommon as it might seem.

Joerg


More information about the cvs-src mailing list