From owner-freebsd-arch Sun Feb 17 0:13:27 2002 Delivered-To: freebsd-arch@freebsd.org Received: from mass.dis.org (dhcp45-21.dis.org [216.240.45.21]) by hub.freebsd.org (Postfix) with ESMTP id D455237B419 for ; Sun, 17 Feb 2002 00:13:24 -0800 (PST) Received: from mass.dis.org (localhost [127.0.0.1]) by mass.dis.org (8.11.6/8.11.6) with ESMTP id g1H8DAV01750; Sun, 17 Feb 2002 00:13:16 -0800 (PST) (envelope-from msmith@mass.dis.org) Message-Id: <200202170813.g1H8DAV01750@mass.dis.org> X-Mailer: exmh version 2.5 07/13/2001 with nmh-1.0.4 To: "mike varga" Cc: freebsd-arch@freebsd.org Subject: Re: reverse vtophys() In-reply-to: Your message of "Fri, 15 Feb 2002 12:06:57 PST." <003701c1b65c$53138840$b210a8c0@netscreen5> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sun, 17 Feb 2002 00:13:10 -0800 From: Michael Smith Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > > Is there a function that exists=20 > that converts a physical address to=20 > a process's virtual address? No; the concept isn't valid. - A given physical address may be mapped in more than one virtual location within the process' address space. - There is an unavoidable race with unwired memory where a physical page may "move" as it is used to back more than a single physical page, resulting in a bad answer. Perhaps you should explain what it is that you're trying to do, rather than narrowing down to what you think is the solution... -- To announce that there must be no criticism of the president, or that we are to stand by the president, right or wrong, is not only unpatriotic and servile, but is morally treasonable to the American public. - Theodore Roosevelt To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message