Displaying 2 results from an estimated 2 matches for "pageforeigndestructor".
2006 Mar 14
1
[Xen-ia64-devel] RE: RE: Linux PG_arch_1 conflict
...r) do { \
> set_page_private((page), (unsigned long)dtor); \
> (page)->mapping = &xen_ia64_foreign_dummy_mapping; \
>} while (0)
>
>#define ClearPageForeign(page) do { \
> (page)->mapping = NULL; \
> set_page_private((page), 0); \
>} while (0)
>
>#define PageForeignDestructor(page) \
> ( (void (*) (struct page *)) page_private((page)) )
>
Hi, Isaku,
(page)->mapping is used to keep special destructor since that foreign page needs to be freed differently as normal linux pages, as you see in foreign_page.h. Your hack only ensures the check. Agree right way to go...
2006 Mar 14
0
RE: [Xen-ia64-devel] RE: RE: Linux PG_arch_1 conflict
...(page)->mapping = &xen_ia64_foreign_dummy_mapping; \
>> >} while (0)
>> >
>> >#define ClearPageForeign(page) do { \
>> > (page)->mapping = NULL; \
>> > set_page_private((page), 0); \
>> >} while (0)
>> >
>> >#define PageForeignDestructor(page) \
>> > ( (void (*) (struct page *)) page_private((page)) )
>> >
>>
>> Hi, Isaku,
>> (page)->mapping is used to keep special destructor since that
>foreign page needs to be freed differently as normal linux pages, as you
>see in foreign_page.h. You...