[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] how to use void free_xenheap_pages(void *v, unsigned int order) ? what does the order mean?


  • To: xen-devel <xen-devel@xxxxxxxxxxxxx>
  • From: yandong han <toyandong@xxxxxxxxx>
  • Date: Fri, 5 Jul 2013 09:55:05 +0800
  • Delivery-date: Fri, 05 Jul 2013 01:56:11 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xen.org>


hi, all
    I used alloc_xenheap_page()  to allocate  a page of  memory,  then I should  free it.
but  I donnt know   what  the order  mean? can anyone give me an example?

comm->shared_page_ptr = alloc_xenheap_page();
comm->shared_page_mfn = virt_to_mfn(comm->shared_page_ptr);
page = mfn_to_page(comm->shared_page_mfn);
share_xen_page_with_privileged_guests(page, XENSHARE_writable);


----------------------------------------------------------
Best Regards,
yandong

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.