Defined in 4 files as a prototype:

Defined in 9 files as a function:

Referenced in 17 files:

Smatch caller information:

arch/x86/mm/init_64.c mark_rodata_ro() -> set_memory_ro()

Type Parameter Key Value
PARAM_VALUE 0 addr 6850088256125747200
PARAM_VALUE 1 numpages (-437996485)
NOCHECK_CALL
UNITS 1 numpages unit_page

arch/x86/mm/init_64.c mark_rodata_ro() -> set_memory_ro()

Type Parameter Key Value
NOCHECK_CALL
UNITS 1 numpages unit_page

kernel/power/snapshot.c hibernate_restore_protect_page() -> set_memory_ro()

Type Parameter Key Value
PARAM_VALUE 1 numpages 1
DATA_SOURCE 0 addr $0
RX_PATH
TASK_NOT_RUNNING
LOCK2 global &system_transition_mutex
HALF_LOCKED2 global &device_hotplug_lock

arch/x86/realmode/init.c set_real_mode_permissions() -> set_memory_ro()

Type Parameter Key Value
PARAM_VALUE 0 addr 4096-18446744073709547520
CAPPED_DATA 0 addr 1
NOCHECK_CALL
UNITS 1 numpages unit_page

arch/x86/kernel/idt.c idt_setup_apic_and_irq_gates() -> set_memory_ro()

Type Parameter Key Value
PARAM_VALUE 0 addr 6417045345633595392
PARAM_VALUE 1 numpages 1
NOCHECK_CALL

arch/x86/kernel/ftrace.c set_ftrace_ops_ro() -> set_memory_ro()

Type Parameter Key Value
PARAM_VALUE 1 numpages (-2140202783),(-147943444),5976849,1998236188
NOCHECK_CALL

arch/x86/mm/pat/set_memory.c set_pages_ro() -> set_memory_ro()

Type Parameter Key Value
PARAM_VALUE 0 addr 18379471554275704832,18446612682070032384
DATA_SOURCE 0 addr r lowmem_page_address
DATA_SOURCE 1 numpages $1
RX_PATH
TASK_NOT_RUNNING
UNITS 1 numpages unit_page
HALF_LOCKED2 &buffer->mutex
HALF_LOCKED2 &frag->frag_sem
HALF_LOCKED2 global &__crash_hotplug_lock

kernel/module/strict_rwx.c module_set_memory() -> module_set_memory param 2()

Type Parameter Key Value
PARAM_VALUE 0 addr 1-u64max
PARAM_VALUE 1 numpages 0-1048575
CAPPED_DATA 0 addr 1
UNITS 1 numpages unit_page
LOCK2 global &module_mutex