Defined in 4 files as a prototype:
- arch/arm/include/asm/set_memory.h, line 12 (as a prototype)
- arch/loongarch/include/asm/set_memory.h, line 12 (as a prototype)
- arch/riscv/include/asm/set_memory.h, line 16 (as a prototype)
- include/asm-generic/set_memory.h, line 10 (as a prototype)
Defined in 9 files as a function:
- arch/arm/include/asm/set_memory.h, line 18 (as a function)
- arch/arm/mm/pageattr.c, line 94 (as a function)
- arch/arm64/mm/pageattr.c, line 235 (as a function)
- arch/loongarch/mm/pageattr.c, line 129 (as a function)
- arch/powerpc/include/asm/set_memory.h, line 30 (as a function)
- arch/riscv/include/asm/set_memory.h, line 32 (as a function)
- arch/riscv/mm/pageattr.c, line 367 (as a function)
- arch/x86/mm/pat/set_memory.c, line 2348 (as a function)
- include/linux/set_memory.h, line 13 (as a function)
Referenced in 11 files:
- arch/riscv/kernel/hibernate.c, line 349
- arch/riscv/kernel/machine_kexec.c, line 78
- arch/s390/include/asm/set_memory.h, line 58
- arch/s390/mm/vmem.c, line 683
- arch/x86/kernel/alternative.c, line 233
- arch/x86/kernel/machine_kexec_32.c, line 139
- arch/x86/pci/pcbios.c, line 61
- arch/x86/platform/efi/efi_32.c, line 139
- arch/x86/realmode/init.c, line 205
- include/linux/set_memory.h, line 23
- kernel/module/strict_rwx.c, line 44
Smatch caller information:
arch/x86/kernel/alternative.c its_alloc() -> set_memory_x()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | addr | 1-u64max |
| PARAM_VALUE | 1 | numpages | 1 |
| DATA_SOURCE | 0 | addr | r __its_alloc |
| NOCHECK_CALL |
arch/x86/realmode/init.c set_real_mode_permissions() -> set_memory_x()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | numpages | 0-1048575 |
| NOCHECK_CALL | |||
| UNITS | 1 | numpages | unit_page |