参照元†
返り値†
- int
- ZONELIST_FALLBACKか、ZONELIST_NOFALLBACKを返す。
/*
* There is only one page-allocator function, and two main namespaces to
* it. The alloc_page*() variants return 'struct page *' and as such
* can allocate highmem pages, the *get*page*() variants return
* virtual kernel addresses to the allocated page(s).
*/
static inline int gfp_zonelist(gfp_t flags)
{
#ifdef CONFIG_NUMA
if (unlikely(flags & __GFP_THISNODE))
return ZONELIST_NOFALLBACK;
#endif
return ZONELIST_FALLBACK;
}
- ZONELIST_FALLBACKは0、ZONELIST_NOFALLBACKは1
- __GFP_THISNODEは0x20_0000u
コメント†