Function report |
Source Code:mm\compaction.c |
Create Date:2022-07-28 14:30:34 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:Compaction requires the taking of some coarse locks that are potentially* very heavily contended. The lock should be periodically unlocked to avoid* having disabled IRQs for a long time, even when there is nobody waiting on* the lock
Proto:static bool compact_unlock_should_abort(spinlock_t *lock, unsigned long flags, bool *locked, struct compact_control *cc)
Type:bool
Parameter:
| Type | Parameter | Name |
|---|---|---|
| spinlock_t * | lock | |
| unsigned long | flags | |
| bool * | locked | |
| struct compact_control * | cc |
| 515 | If locked Then |
| 516 | spin_unlock_irqrestore(lock, flags) |
| 517 | * locked = false |
| 520 | If fatal_signal_pending(current process) Then |
| 521 | Signal lock or sched contention = true |
| 522 | Return true |
| 525 | cond_resched() |
| 527 | Return false |
| Name | Describe |
|---|---|
| isolate_freepages_block | Isolate free pages onto a private freelist. If @strict is true, will abort* returning 0 on any invalid PFNs or non-free pages inside of the pageblock* (even though it may still end up isolating some pages). |
| isolate_migratepages_block | solate_migratepages_block() - isolate all migrate-able pages within* a single pageblock*@cc: Compaction control structure.*@low_pfn: The first PFN to isolate*@end_pfn: The one-past-the-last PFN to isolate, within same pageblock |
| 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 |