WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] The return value of xc_map_foreign_range~~~

To: "张琳" <zhanglin_nk@xxxxxxx>
Subject: Re: [Xen-devel] The return value of xc_map_foreign_range~~~
From: "Derek Murray" <Derek.Murray@xxxxxxxxxxxx>
Date: Tue, 18 Mar 2008 12:33:00 +0000
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Tue, 18 Mar 2008 05:33:28 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:reply-to:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; bh=bzs+Vh0jzmZaoPrcJAA1ZArTem7XeuyeoxC80NoVNPY=; b=PyQqWzOFA9iZm5m6cjzLOy4UkrukxorkqYuaiDWhEUBnhbtNzWbMavf/j5lP7aXmE5as9m+e6xkJ603EKpqt2d0NX9TIB00zj9nvsp5cJ9Tpjje7XfdZ4VAaf5VSjCcT0R4xRTslNqFK4RkUvBjV/tW6VZ4bVxBe1aEG4zGzfbY=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:reply-to:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=BwaV8Sx7dZ4voib35uJe1BVTskwJSR/V0+aQ8XsLKxKAyYCdlEzt4J7Y6Jz2pj7FMjBq8jfxTbAlxV4jd3HIlH68SCHuuOpIJCb1RWo5tnPoEusQG3QG8u2CX0Lzz083pujh8NxHIZkapHurFjl2NfxvB/0VroJHSreKC6eNQrk=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <47DFAB5A.0000F4.17180@bjapp34>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <47DFAB5A.0000F4.17180@bjapp34>
Reply-to: Derek.Murray@xxxxxxxxxxxx
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Hi,

2008/3/18 张琳 <zhanglin_nk@xxxxxxx>:
> So, can anyone told me the meaning of the return value of this function
> -----xc_map_foreign_range?
>
> Is it a pointer pointed to a memory area corresponding the machine frame
> number(the last parameter passed to the function)?

That's correct.

> And the third parameter named size: the unit of size is in bytes or in
> pages?

The size parameter is in bytes, and must be a multiple of PAGE_SIZE
(as with mmap).

Regards,

Derek Murray.
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>