Lines Matching defs:pgd
67 * List of all pgd's needed for non-PAE so it can invalidate entries
68 * in both cached and uncached pgd's; not needed for PAE since the
83 static inline void pgd_list_add(pgd_t *pgd)
85 struct page *page = virt_to_page(pgd);
93 static inline void pgd_list_del(pgd_t *pgd)
95 struct page *next, **pprev, *page = virt_to_page(pgd);
103 void pgd_ctor(void *pgd)
110 memcpy((pgd_t *) pgd + USER_PGDS_IN_LAST_PML4,
117 pgd_list_add(pgd);
119 memset(pgd, 0, USER_PGDS_IN_LAST_PML4 * sizeof(pgd_t));
123 void pgd_dtor(void *pgd)
128 pgd_list_del(pgd);
134 pgd_t *pgd;
136 pgd = quicklist_alloc(0, GFP_KERNEL, pgd_ctor);
137 if (!pgd)
138 return pgd;
140 return pgd;
143 void pgd_free(pgd_t *pgd)
145 /* in the non-PAE case, clear_page_tables() clears user pgd entries */
146 quicklist_free(0, pgd_dtor, pgd);