start_kernel——page_address_init

来源:互联网 发布:欠淘宝贷款2年了没还上 编辑:程序博客网 时间:2024/05/21 09:57

mm/highmem.c

void __init page_address_init(void){    int i;    for (i = 0; i < ARRAY_SIZE(page_address_htable); i++) {        INIT_LIST_HEAD(&page_address_htable[i].lh);        spin_lock_init(&page_address_htable[i].lock);    }}/* * Hash table bucket */static struct page_address_slot {    struct list_head lh;            /* List of page_address_maps */    spinlock_t lock;            /* Protect this bucket's list */} ____cacheline_aligned_in_smp page_address_htable[1<<PA_HASH_ORDER];#define PA_HASH_ORDER   7

对page_address_htable中的128个元素进行初始化。

0 0