函数逻辑报告 | 
Source Code:mm\compaction.c | 
Create Date:2022-07-27 15:55:17 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| 首页 | 函数Tree | 
| 注解内核,赢得工具 | 下载SCCT | English | 
函数名称: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
函数原型:static bool compact_unlock_should_abort(spinlock_t *lock, unsigned long flags, bool *locked, struct compact_control *cc)
返回类型:bool
参数:
| 类型 | 参数 | 名称 | 
|---|---|---|
| spinlock_t * | lock | |
| unsigned long | flags | |
| bool * | locked | |
| struct compact_control * | cc | 
| 515 | 如果locked则 | 
| 516 | spin_unlock_irqrestore(lock, flags) | 
| 517 | * locked = false | 
| 520 | 如果fatal_signal_pending(当前进程)则 | 
| 521 | Signal lock or sched contention = true | 
| 522 | 返回:true | 
| 525 | cond_resched() | 
| 527 | 返回:false | 
| 名称 | 描述 | 
|---|---|
| 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 | 
| 源代码转换工具 开放的插件接口  | X | 
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码  |