Re: [PATCH 12/13] maps: Add /proc/pid/pagemap interface

Matt Mackall
2007-04-04T22:12:33Z

On Wed, Apr 04, 2007 at 10:03:04PM +0400, Nikita Danilov wrote:
> Matt Mackall writes:
>
> [...]
>
> >
> > Now I could adjust these to only export u64s in some preferred
> > endianness. But given I already need details like the page size to
> > make any sense of it, it seems unnecessary. Also, the PFNs are fairly
> > opaque unless you're attempting to correlate them with /proc/kpagemap.
>
> Alternatively, you can export some meta-data at the beginning of that
> file like /proc/profile does.

That seems reasonable. We need page size, entry size (4 or 8 bytes), and
an endian marker. I'll see what I can come up with.

--
Mathematics is the supreme nostalgia of our time.