[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] SetPageForeign in netback
> hi, > in netback init mmap_pages, > SetPageForeign(page, netif_page_release); > that is, page->index = netif_page_release > while netif_page_release is a function. netif_page_release is a function, and therefore: page->index = netif_page_release will store netif_page_release function pointer in 'index' > so what's the meaning of SetPageForeign? Setting a page foreign means that the page is owned by another domain, and that some care needs to be taken when freeing it. > And when the function netif_page_release() will be called? Whenever PageForeignDestructor is called (as it calls the destructor function stored in the 'index' field). PageForeignDestructor is called from: __free_pages_ok and free_hot_cold_page Hope this helps. Cheers Gr(z)egor(z) _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |