Home
last modified time | relevance | path

Searched refs:page (Results 1 – 10 of 10) sorted by relevance

/DragonOS-0.1.2/kernel/src/mm/
Dslab.c71 slab_pool->cache_pool_entry->page = alloc_pages(ZONE_NORMAL, 1, PAGE_KERNEL); in slab_create()
74 if (slab_pool->cache_pool_entry->page == NULL) in slab_create()
89 slab_pool->cache_pool_entry->vaddr = phys_2_virt(slab_pool->cache_pool_entry->page->addr_phys); in slab_create()
103 free_pages(slab_pool->cache_pool_entry->page, 1); in slab_create()
141 page_clean(tmp_slab_obj->page); in slab_destroy()
143 free_pages(tmp_slab_obj->page, 1); in slab_destroy()
149 page_clean(slab_obj_ptr->page); in slab_destroy()
150 free_pages(slab_obj_ptr->page, 1); in slab_destroy()
183 tmp_slab_obj->page = alloc_pages(ZONE_NORMAL, 1, PAGE_KERNEL); in slab_malloc()
186 if (tmp_slab_obj->page == NULL) in slab_malloc()
[all …]
Dvma.c182 struct anon_vma_t *__anon_vma_create_alloc(struct Page *page, bool lock_page) in __anon_vma_create_alloc() argument
193 if (page != NULL) in __anon_vma_create_alloc()
198 spin_lock(&page->op_lock); in __anon_vma_create_alloc()
199 page->anon_vma = anon_vma; in __anon_vma_create_alloc()
200 spin_unlock(&page->op_lock); in __anon_vma_create_alloc()
203 page->anon_vma = anon_vma; in __anon_vma_create_alloc()
205 anon_vma->page = page; in __anon_vma_create_alloc()
235 if (anon_vma->page != NULL) in __anon_vma_free()
237 spin_lock(&anon_vma->page->op_lock); in __anon_vma_free()
238 anon_vma->page->anon_vma = NULL; in __anon_vma_free()
[all …]
Dmm.c266 unsigned long page_init(struct Page *page, ul flags) in page_init() argument
268 page->attr |= flags; in page_init()
270 if ((!page->ref_counts) || (page->attr & PAGE_SHARED)) in page_init()
272 ++page->ref_counts; in page_init()
274 if (page->zone) in page_init()
275 ++page->zone->total_pages_link; in page_init()
277 page->anon_vma = NULL; in page_init()
278 spin_init(&(page->op_lock)); in page_init()
399 ul get_page_attr(struct Page *page) in get_page_attr() argument
401 if (page == NULL) in get_page_attr()
[all …]
Dmm.h224 unsigned long page_init(struct Page *page, ul flags);
254 unsigned long page_clean(struct Page *page);
262 void free_pages(struct Page *page, int number);
270 ul get_page_attr(struct Page *page);
279 ul set_page_attr(struct Page *page, ul flags);
Dinternal.h43 struct anon_vma_t *__anon_vma_create_alloc(struct Page *page, bool lock_page);
Dslab.h21 struct Page *page; member
Dmm-types.h181 struct Page* page; member
Dmmap.c372 if (unlikely(vma->anon_vma == NULL || vma->anon_vma->page == NULL)) in mm_map_vma()
375 pg = vma->anon_vma->page; in mm_map_vma()
/DragonOS-0.1.2/kernel/src/driver/hid/
Dhidparse.c20 static const char *hid_get_usage_type_str(const int page, const int type);
436 static const char *hid_get_usage_type_str(const int page, const int type) in hid_get_usage_type_str() argument
438 const struct hid_usage_pages_string *upage = hid_get_usage_page(page); in hid_get_usage_type_str()
441 sprintk(__tmp_usage_page_str, "Unknown Usage Page: %#04x", page); in hid_get_usage_type_str()
446 if (page == 0x0009) in hid_get_usage_type_str()
451 else if (page == 0x000a) in hid_get_usage_type_str()
456 else if (page == 0x0010) in hid_get_usage_type_str()
/DragonOS-0.1.2/docs/kernel/core_api/
Dmm-api.md108 ### `void free_pages(struct Page *page, int number)`
116 **page**