Defined in 2 files as a prototype:
- arch/arm64/include/asm/hugetlb.h, line 51 (as a prototype)
- arch/riscv/include/asm/hugetlb.h, line 35 (as a prototype)
Defined in 10 files as a function:
- arch/arm64/mm/hugetlbpage.c, line 476 (as a function)
- arch/loongarch/include/asm/hugetlb.h, line 37 (as a function)
- arch/mips/include/asm/hugetlb.h, line 28 (as a function)
- arch/parisc/include/asm/hugetlb.h, line 16 (as a function)
- arch/powerpc/include/asm/hugetlb.h, line 55 (as a function)
- arch/riscv/mm/hugetlbpage.c, line 346 (as a function)
- arch/s390/include/asm/hugetlb.h, line 51 (as a function)
- arch/sh/include/asm/hugetlb.h, line 9 (as a function)
- arch/sparc/include/asm/hugetlb.h, line 26 (as a function)
- include/asm-generic/hugetlb.h, line 86 (as a function)
Referenced in 4 files:
- arch/arm64/mm/hugetlbpage.c, line 528
- include/linux/hugetlb.h, line 1275
- mm/hugetlb.c, line 5639
- mm/rmap.c
Smatch caller information:
mm/rmap.c try_to_migrate_one() -> huge_ptep_clear_flush()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | vma | 4096-ptr_max |
| PARAM_VALUE | 0 | vma->vm_mm | 4096-ptr_max |
| PARAM_VALUE | 2 | ptep | 4096-ptr_max |
| DATA_SOURCE | 0 | vma | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NO_OVERFLOW_SIMPLE | 0 | vma->vm_start | |
| UNITS | 1 | addr | unit_byte |
| HALF_LOCKED2 | &anon_vma->root->rwsem | ||
| HALF_LOCKED2 | &folio->private->lock | ||
| HALF_LOCKED2 | &resv_map->rw_sema | ||
| HALF_LOCKED2 | 0 | &vma->vm_private_data->rw_sema |
mm/rmap.c try_to_unmap_poisoned_hugetlb_one() -> huge_ptep_clear_flush()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | vma | 4096-ptr_max |
| PARAM_VALUE | 0 | vma->vm_file | 4096-ptr_max |
| PARAM_VALUE | 0 | vma->vm_mm | 4096-ptr_max |
| PARAM_VALUE | 2 | ptep | 4096-ptr_max |
| DATA_SOURCE | 0 | vma | $1 |
| DATA_SOURCE | 1 | addr | $2 [m] |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NO_OVERFLOW_SIMPLE | 0 | vma->vm_start | |
| HALF_LOCKED2 | &anon_vma->root->rwsem | ||
| HALF_LOCKED2 | &folio->private->lock | ||
| HALF_LOCKED2 | &resv_map->rw_sema | ||
| HALF_LOCKED2 | 0 | &vma->vm_private_data->rw_sema |
mm/hugetlb.c hugetlb_wp() -> huge_ptep_clear_flush()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | vma | 4096-ptr_max |
| PARAM_VALUE | 0 | vma->vm_file | 4096-ptr_max |
| PARAM_VALUE | 0 | vma->vm_file->f_mapping->i_mmap_rwsem.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 0 | vma->vm_file->f_mapping->i_mmap_rwsem.first_waiter->type | 0-1 |
| PARAM_VALUE | 0 | vma->vm_mm | 4096-ptr_max |
| PARAM_VALUE | 0 | vma->vm_ops | 0,4096-ptr_max |
| PARAM_VALUE | 2 | ptep | 4096-ptr_max |
| DATA_SOURCE | 2 | ptep | r hugetlb_walk |
| BIT_INFO | 0 | vma->vm_flags | 0x0,0xffffffffffffff7f |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| USER_DATA | 0 | vma->vm_policy->flags | 0,24,8192-57368[c] |
| USER_DATA | 0 | vma->vm_policy->home_node | 0-1023 |
| USER_DATA | 1 | addr | 0-u64max[c] |
| UNITS | 1 | addr | unit_byte |
| LOCK2 | vmf->ptl | ||
| HALF_LOCKED2 | &mm->mmap_lock | ||
| HALF_LOCKED2 | &pool->lock |