[Mesa-dev] [PATCH mesa 3/5] egl: Fix _eglPointerIsDereferencable() to ignore page residency
Miguel Angel Vico
mvicomoya at nvidia.com
Thu Jul 20 00:34:24 UTC 2017
On Wed, 19 Jul 2017 11:43:43 +0100
Emil Velikov <emil.l.velikov at gmail.com> wrote:
> On 18 July 2017 at 21:49, Miguel A. Vico <mvicomoya at nvidia.com> wrote:
> > mincore() returns 0 on success, and -1 on failure. The last parameter
> > is a vector of bytes with one entry for each page queried. mincore
> > returns page residency information in the first bit of each byte in the
> > vector.
> >
> > Residency doesn't actually matter when determining whether a pointer is
> > dereferenceable, so the output vector can be ignored. What matters is
> > whether mincore succeeds. See:
> >
> > http://man7.org/linux/man-pages/man2/mincore.2.html
> >
> Makes sense. Can you confirm that the BSD/Solaris manpages are on the same page?
According to the man pages, they all seem to behave the same way in
that regard.
>
> Considering they all agree
> Reviewed-by: Emil Velikov <emil.velikov at collabora.com>
>
Thanks. I sent the new rebased v2 version. Could you push on my behalf?
> -Emil
Thanks.
--
Miguel
More information about the mesa-dev
mailing list