Date: Wed, 28 Jul 2010 22:53:46 -0500 From: Alan Cox <alc@cs.rice.edu> To: Jeff Roberson <jeff@FreeBSD.org> Cc: svn-src-projects@freebsd.org, src-committers@freebsd.org Subject: Re: svn commit: r210586 - projects/ofed/head/sys/ofed/include/linux Message-ID: <4C50FB4A.4000505@cs.rice.edu> In-Reply-To: <201007290212.o6T2CN20099343@svn.freebsd.org> References: <201007290212.o6T2CN20099343@svn.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Jeff Roberson wrote: > Author: jeff > Date: Thu Jul 29 02:12:22 2010 > New Revision: 210586 > URL: http://svn.freebsd.org/changeset/base/210586 > > Log: > - Refine various page allocation methods. They all essentially override > the page object pointer to cache the virtual address after allocation. > This same trick is used in UMA to store the slab address and so it > should be safe. > > You needn't do this. The virtual address of a kernel_object or kmem_object page is easily obtained: VM_MIN_KERNEL_ADDRESS + IDX_TO_OFF(m->pindex) Regards, Alan
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4C50FB4A.4000505>