Documented in 1 files:
Defined in 2 files as a function:
- mm/khugepaged.c, line 426 (as a function)
- tools/testing/selftests/mm/khugepaged.c, line 1109 (as a function)
Referenced in 2 files:
Smatch caller information:
mm/khugepaged.c __collapse_huge_page_isolate() -> collapse_max_ptes_shared()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | cc | 4096-ptr_max |
| PARAM_VALUE | 1 | order | 0-9 |
| CAPPED_DATA | 1 | order | 1 |
| DATA_SOURCE | 0 | cc | $3 |
| DATA_SOURCE | 1 | order | $4 |
| FUZZY_MAX | 1 | order | 9 |
| MEM_ZERO | 0 | cc->alloc_nmask.bits | |
| MEM_ZERO | 0 | cc->mthp_present_ptes | |
| MEM_ZERO | 0 | cc->node_load | |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &vma->anon_vma->root->rwsem | ||
| LOCK2 | pte_ptl | ||
| HALF_LOCKED2 | &mm->mmap_lock | ||
| TYPE_LOCK | (struct anon_vma)->rwsem | ||
| TYPE_LOCK | (struct mm_struct)->mmap_lock |
mm/khugepaged.c collapse_scan_pmd() -> collapse_max_ptes_shared()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | cc | 4096-ptr_max |
| PARAM_VALUE | 1 | order | 9 |
| BUF_SIZE | 0 | cc | (-1),4296 |
| BUF_SIZE | 0 | cc | (-1),4296 |
| DATA_SOURCE | 0 | cc | $4 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &mm->mmap_lock |