|
mems_allowed = -1UL;
350 }
:
if(!CHECK_MEMS_ALLOWED(mems_allowed, z))
continue;
:
450 }
【include/linux/cpumemset.h】
194 /* Used in __alloc_pages() to see if we can allocate from a node */
195 #define CHECK_MEMS_ALLOWED(mems_allowed, zone)
196 ((1UL << (zone)->zone_pgdat->node_id) & (mems_allowed))
为虚拟存储区分配页时,如果当前执行该任务的处理器包含在该虚拟存储区的cms中,则从该处理器的内存块列表中分配,否则从该虚拟存储区的cms定义的CMS_DEFAULT_CPU的内存块列表中分配。 页码:[1] [2] [3] [4] [5] [6] 第5页、共6页 |