Defined in 1 files as a function:

Referenced in 1 files:

Smatch caller information:

arch/x86/kernel/cpu/mce/inject.c check_hw_inj_possible() -> toggle_hw_mce_inject()

Type Parameter Key Value
PARAM_VALUE 0 cpu 0
PARAM_VALUE 1 enable 1
PREEMPT_ADD <- disables preempt
NOCHECK_CALL

arch/x86/kernel/cpu/mce/inject.c check_hw_inj_possible() -> toggle_hw_mce_inject()

Type Parameter Key Value
PARAM_VALUE 0 cpu 0
PARAM_VALUE 1 enable 0
PREEMPT_ADD <- disables preempt
NOCHECK_CALL

arch/x86/kernel/cpu/mce/inject.c do_inject() -> toggle_hw_mce_inject()

Type Parameter Key Value
PARAM_VALUE 0 cpu 0-s32max
PARAM_VALUE 1 enable 1
NOCHECK_CALL
LOCK2 &attr->mutex
TYPE_LOCK (struct simple_attr)->mutex

arch/x86/kernel/cpu/mce/inject.c do_inject() -> toggle_hw_mce_inject()

Type Parameter Key Value
PARAM_VALUE 0 cpu 0-s32max
PARAM_VALUE 1 enable 0
CAPPED_DATA 0 cpu 1
NOCHECK_CALL
LOCK2 &attr->mutex
TYPE_LOCK (struct simple_attr)->mutex