Function report |
Source Code:mm\cma.c |
Create Date:2022-07-28 16:31:43 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:cma_activate_area
Proto:static int __init cma_activate_area(struct cma *cma)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct cma * | cma |
| 99 | i = count >> Huge pages are a constant size |
| 102 | bitmap = bitmap_zalloc(cma_bitmap_maxno(cma), GFP_KERNEL) |
| 103 | If Not bitmap Then |
| 108 | WARN_ON_ONCE(!pfn_valid(pfn)) |
| 109 | zone = page_zone(pfn_to_page(pfn)) |
| 111 | Do |
| 116 | WARN_ON_ONCE(!pfn_valid(pfn)) |
| 123 | If page_zone(pfn_to_page(pfn)) != zone Then Go to not_in_zone |
| 129 | mutex_init - initialize the mutex*@mutex: the mutex to be initialized* Initialize the mutex to unlocked state.* It is not allowed to initialize an already locked mutex.( & lock) |
| 132 | INIT_HLIST_HEAD( & mem_head) |
| 136 | Return 0 |
| 138 | not_in_zone : |
| 140 | bitmap_free(bitmap) |
| 141 | count = 0 |
| 142 | Return -EINVAL |
| Name | Describe |
|---|---|
| cma_init_reserved_areas |
| Source code conversion tool public plug-in interface | X |
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |