Function report |
Source Code:mm\mempolicy.c |
Create Date:2022-07-28 15:31:03 |
| Last Modify:2020-03-17 22:28:11 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:queue_pages_pmd() has four possible return values:* 0 - pages are placed on the right node or queued successfully
Proto:static int queue_pages_pmd(pmd_t *pmd, spinlock_t *ptl, unsigned long addr, unsigned long end, struct mm_walk *walk)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| pmd_t * | pmd | |
| spinlock_t * | ptl | |
| unsigned long | addr | |
| unsigned long | end | |
| struct mm_walk * | walk |
| 446 | ret = 0 |
| 455 | page = Currently stuck as a macro due to indirect forward reference to* linux/mmzone.h's __section_mem_map_addr() definition:( * pmd) |
| 456 | If is_huge_zero_page(page) Then |
| 457 | spin_unlock(ptl) |
| 458 | __split_huge_pmd(vma, pmd, addr, TSC's on different sockets may be reset asynchronously.* This may cause the TSC ADJUST value on socket 0 to be NOT 0., NULL) |
| 459 | ret = 2 |
| 460 | Go to out |
| 462 | If Not Check if the page's nid is in qp->nmask.* If MPOL_MF_INVERT is set in qp->flags, check if the nid is* in the invert of qp->nmask. Then Go to unlock |
| 468 | If Not Check if a vma is migratable || migrate_page_add(page, pagelist, flags) Then |
| 475 | unlock : |
| 476 | spin_unlock(ptl) |
| 477 | out : |
| 478 | Return ret |
| Name | Describe |
|---|---|
| queue_pages_pte_range | Scan through pages checking if pages follow certain conditions,* and move them to the pagelist if they do |
| 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 |