Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 17 Feb 2002 00:13:10 -0800
From:      Michael Smith <msmith@freebsd.org>
To:        "mike varga" <mike.varga@cavium.com>
Cc:        freebsd-arch@freebsd.org
Subject:   Re: reverse vtophys() 
Message-ID:  <200202170813.g1H8DAV01750@mass.dis.org>
In-Reply-To: Your message of "Fri, 15 Feb 2002 12:06:57 PST." <003701c1b65c$53138840$b210a8c0@netscreen5> 

next in thread | previous in thread | raw e-mail | index | archive | help
> 
> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200202170813.g1H8DAV01750>