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

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



>>> On 05.07.13 at 03:55, yandong han <toyandong@xxxxxxxxx> wrote:
>     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?

Before asking here, why don't you do a little bit of research yourself?
You obviously didn't look at the "declaration" of alloc_xenheap_page(),
or else you would have seen that this is a macro _and_ that there is
also a matching free_xenheap_page(). Either of the two observations
directly answers your question.

And along the same lines (considering the usage example you gave),
I can only recommend looking at how other existing code does this
handling, in order for you to avoid making mistakes here.

Jan


_______________________________________________
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®.