Function report |
Source Code:mm\hugetlb.c |
Create Date:2022-07-28 15:25:22 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:Examine the existing reserve map and determine how many* huge pages in the specified range [f, t) are NOT currently* represented. This routine is called before a subsequent* call to region_add that will actually modify the reserve
Proto:static long region_chg(struct resv_map *resv, long f, long t)
Type:long
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct resv_map * | resv | |
| long | f | |
| long | t |
| 372 | chg = 0 |
| 375 | retry_locked : |
| 376 | adds_in_progress++ |
| 382 | If adds_in_progress > region_cache_count Then |
| 385 | VM_BUG_ON(adds_in_progress - region_cache_count > 1) |
| 387 | adds_in_progress-- |
| 388 | spin_unlock( & lock) |
| 390 | trg = kmalloc( size of trg , GFP_KERNEL) |
| 396 | region_cache_count++ |
| 397 | Go to retry_locked |
| 400 | chg = Must be called with resv->lock held. Calling this with count_only == true* will count the number of pages to be added but will not modify the linked* list. |
| 402 | spin_unlock( & lock) |
| 403 | Return chg |
| Name | Describe |
|---|---|
| __vma_reservation_common | |
| hugetlb_reserve_pages |
| 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 |